tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alain Origlia" <>
Subject Re: Sticky sessions (again)
Date Tue, 07 Nov 2000 15:30:48 GMT
> what do you mean with sticky sessions ?
> sessions that persist ?

At first, thanks for your answer.

Hmm... well, imagine a web server working with two servlets engines A and B
hosting a same application on two distinct servers. All the servlet engine
workers are configured to work into a load balancing mode. I want to be sure
that a client which starts to deal with the engine A will never send
requests to the engine B until the session is finished.
Thus the session seems to stick to the same servlet engine. I don't want to
have anything persistent. I just want to talk the same servlet engine until
client closes.

I know there are two ways to make sessions stick to a servlet engine using
cookies or URL rewriting. I have seen (tomcat users mailing list) that some
troubles occurred with Tomcat if cookies were already used by the web
application. And I don't know what is the status of URL rewriting of Tomcat.
I already tried to make load balancing work with Tomcat 3.2beta6 (and
later), thinking that those kinds of troubles were fixed but all my tests
remain unsuccessfull.

So I wonder now if there's something wrong in all my tests. Does somebody
succeed in making sticky sessions work with Tomcat, or if in this version,
sticky sessions cannot work?


----- Original Message -----
From: <>
To: "Alain Origlia" <>
Sent: Tuesday, November 07, 2000 9:52 AM
Subject: Re: Sticky sessions (again)

> On Fri, 3 Nov 2000, Alain Origlia wrote:
> > Hi,
> >
> > I'd like to know if somebody has succeeded in having Tomcat running with
sticky sessions in standalone mode or with an external web server (other
than Apache)?!
> > Searches on some mailing lists make me think that some code must be
changed or added. My application already uses cookies and it seems to be a
problem, am I wrong?
> > Is there a patch somewhere? Or summed up information about sticky
> >
> > Last nightly builds don't fix the problem and my sessions are still
unsticky :o(
> > Please help!!! Thanks for answers...
> >
> what do you mean with sticky sessions ?
> sessions that persist ? (so that the same user get's the same sessions
> object whenever he returns ?
> The last, I implemented using something like an SQL database acting like
> some object repository.
> Sloot.

View raw message