I am working on JAX-WS webservice and sometimes on heavy load i am getting HttpSession "null". This is how I am getting the session:
MessageContext mc = wsContext.getMessageContext(); HttpSession session=((HttpServletRequest)mc.get(MessageContext.SERVLET_REQUEST)).getSession(); if(session==null) { logger.warn("Session is null"); }
I am using JBoss 5
Thanks | Abhi