Announcement Announcement Module
Collapse
No announcement yet.
How to handle httpsession in spring ws Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to handle httpsession in spring ws

    - I store my request in a ThreadLocal (MySoapUtils.class):

    Code:
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    
    import org.springframework.ws.transport.http.MessageDispatcherServlet;
    
    import com.hdexpertise.app.soap.Utils.MySoapUtils;
    
    public class MyMessageDispatcherServlet extends MessageDispatcherServlet {
    	
        protected void doService(HttpServletRequest httpServletRequest,
                HttpServletResponse httpServletResponse) throws Exception {
    
        	MySoapUtils.setRequest(httpServletRequest);
    
            super.doService(httpServletRequest, httpServletResponse);
        }
        
    }
    - When I use:

    Code:
    MySoapUtils.getRequest().getSession();
    is each request the server create a session (multi session)

    => Please help me store httpsession and send it back to client or how to exchange JSESSIONID between server and client
Working...
X