users@jersey.java.net

[Jersey] Re: Providing a stateful JAX-RS service in a cluster

From: Martin Matula <martin.matula_at_oracle.com>
Date: Fri, 25 Feb 2011 13:26:18 +0100

Hi,

On 25.2.2011 11:50, Leo Romanoff wrote:
> Does it mean that the returned session cookie should be propagated by the
> client into all subsequent requests? Is it something that can be safely
> assumed about AJAX-clients? Do they usually do it in typical cases? I'm
> asking because I'm not a big expert in such client-side things.
Can't you declare you require your clients to accept cookies?
> In principle, as described in the initial post, there is a process id, which
> is a unique id that could be used for correlation. The problem is that
> currently it is just a part of initial reponse and later used by the client
> in request URIs and not as an HTTP header or a session cookie.
I guess it depends on the capabilities of your load-balancer and it's
flexibility when it comes to defining the stickyness rules. I don't have
any experience with that.
Martin