Skip to main content

Where is the jsessionid cookie?

Please note these forums are being decommissioned and use the new and improved forums at
1 reply [Last post]
Joined: 2011-12-12


I'm new to the Metro WS world (and web in general) so please forgive me if my question is a trivial one.

I developed a couple of services. I managed to deploy them on Jetty using the jax-ws ri Spring integration support (with the WSSpringServlet).

I'm using the http transport.

It works fine except that I want to manage some session state, and for this I need the session cookie (jsessionid) to be set.

But for some reason I can't make this cookie to be set, though it suppose to be Jetty's default behaviour. Btw, with Glassfish the result is the same - no session cookie.

Am I missing something in my configuration? Is it an expected behavior of the WSSpringServlet?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2011-08-01


see this article to see how to work with sessions in JAX-WS:

regarding Spring configuration you would have to search Spring docs.