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 11:14:24 +0100

Hi Leo,

On 25.2.2011 10:16, Leo Romanoff wrote:
> Now, I'd like to make the Jersey-based front-end for this service also run
> in the cluster mode. To achieve that I'd like to use load-balancing of
> incoming startSession requests between nodes to produce an even load on
> cluster members. And I need to achieve that all subsequent readSessionState
> and stopSession requests land at the right cluster node, that was picked for
> the initial startSession request.
Depending on your load-balancer, it should be capable of providing the
stickyness based on the session cookie.
Martin