Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jun 2002 22:53:40 -0700
From:      Andrew Gerweck <andrew.gerweck@presedia.com>
To:        sonam singh <sonamsinghl@yahoo.com>
Cc:        freebsd-java@FreeBSD.ORG
Subject:   Re: Tomcat Clusters(HttpSession Replication)
Message-ID:  <3D116DE4.7060205@presedia.com>
References:  <20020620042126.34305.qmail@web14407.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
You can always DIY if you can't get Tomcat to work.


* Set your own cookie with a random string, this is your session id

* Make sure that anything you'd put in the session is in a database.  If 
you're building a robust servlet system, it should probably be 
stateless; there shouldn't be much in your sessions anyway.

* A table associates your session id with the login information.

* Use the servlet container's sessions only for caching the table 
information.


If you write it cleanly, this will be faster and more robust than 
anything Tomcat does for you.  It will also be portable to any servlet 
engine.

sonam singh wrote:
> hi
> Can anyone guide how to do the HttpSession Replication
> with  Tomcat4x in FreeBSD4.5 .i tried to do the
> Clustering as per sugestion provided by the filip.net
> but i have not got any sucess.Is there any other way
> to do the clustering .
> 
> regards
> Sonam
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-java" in the body of the message



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D116DE4.7060205>