views:

41

answers:

0

Hi Folk, i'm trying to use session with metro webservice and tomcat but i have a strange issue, look at these line of code:

MessageContext mc = wsCtxt.getMessageContext();
HttpSession session = ((javax.servlet.http.HttpServletRequest) mc.get(MessageContext.SERVLET_REQUEST)).getSession();

At the first call a session is created, at the second in MessageContext i can see the JSESSIONID cookie with the rigth sesison but session return is a new one.

Anyone has this problem with metro and tomcat?

thanks in advance