Skip to main content

Where is the jsessionid cookie?

1 reply [Last post]
dkundo
Offline
Joined: 2011-12-12
Points: 0

Hello,

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.
miroslav.kos
Offline
Joined: 2011-08-01
Points: 0

Hi,

see this article to see how to work with sessions in JAX-WS: http://weblogs.java.net/blog/ramapulavarthi/archive/2006/06/maintaining_ses.html?force=417

regarding Spring configuration you would have to search Spring docs.

Miran