tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: JESESSIONID
Date Thu, 15 Jan 2009 17:41:15 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

James,

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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAklvdTsACgkQ9CaO5/Lv0PDX/gCdHs0EIQT8VWAxauRZAjCurHEP
YBcAmwQAlsnXBSymUwdwPGmNbFtObNUv
=Akmg
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message