tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Hoare" <>
Date Fri, 16 Jan 2009 09:45:59 GMT
Thanks for the response on this. I don't think I explained myself very clearly though, as we're
not actually using a cluster so we never pass session deltas between the nodes. Our JBOSS
instances are round robin load balanced via mod_jk, therefore if a user has a session created
on one server and that server is taken off line, mod_jk will route that users next request
to the next available app server. The users original session data is never persisted as we
don't currently use Tomcat's PersistentStoreManager.

But I thought that the app server receiving this request with a JSESSIONID that is doesn't
recognise would overwrite the cookie with it's own JESSIONID, if there is a call to req.getSession()?

Our JBOSS instances have an embedded Tomcat v5.5 instance and we deploy our app as a WAR.

Could anyone confirm that the above is the correct behavior of Tomcat?

-----Original Message-----
From: Christopher Schultz []
Sent: Thu 15/01/2009 17:41
To: Tomcat Users List
Hash: SHA1


James Hoare wrote:
> Hi, was wondering if someone could clear this up for me.

I probably can't clear it up, 'cause I have no experience with JBOSS (or
even Tomcat) clusters, but I have a few thoughts...

> We have mod_jk in apache loadbalancing our JBOSS cluster with session
> affinity. We've noticed that once the JESSIONID has been created with
> the call to req.getSession() and the jvmroute encoded by the tomcat
> worker, that if the JBOSS instance that originally created the
> HttpSession is taken off line the next JBOSS instance that receives
> the request doesn't rewrite the cookie with the new JESSIONID for
> that app server?
> Is that the correct behaviour?

If the server instance is participating in a cluster, presumably the
session ids are unique across the cluster. If that's the case, then the
session id is valid no matter which server instance you get and so the
session id wouldn't change if you switched servers.

Does the session continue to "work" after this failover? That is, is
there actually a problem, or are you just asking because you are
observing something unexpected?

- -chris
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message