Hi, There is built in clustering in Tomcat 5, the best way is to use in-memory session replication. Check out the docs on the jakarta site. Session persistence is no good real time as it is not guaranteed that the sessions are written straight to disk.
I've done a fair bit of playing with clusters so have a look at the documentation and ask me if you have any more specific questions. http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html Ta Matt -----Original Message----- From: Linder Anna-Verena [mailto:[EMAIL PROTECTED] Sent: 12 August 2004 15:00 To: Tomcat Users List Subject: Tomcat and Clusters Hello, I have an application that is running under Tomcat 5.0.19 on several servers in a cluster. Now, I would like to share my sessions among all those servers so if one server fails and the user is directed to another, they can keep their current session and won't notice anything. I have tried to use the PersistentManager as described in the documentation, but I can't make it update the session data immediately. Instead, it updates only once every 60 seconds. If during that time the server dies, the session changes are lost. (Under Tomcat 4, the PersistentManager seems to update immediately). Am I going down the wrong way? All the pages in the documentation or the internet seem to point me to the PersistentManager as a clustering solution. Is there a different way to handle clusters with Tomcat? Is somebody doing clusters with Tomcat and would be willing to share their experiences with me? (Thanks, Jules, for the tip about wadi.codehaus.org. I'll look into this, too!) Thanks, Anna Verena ________________________________ Anna Verena Linder TNS Infratest Landsberger Str. 338 D-80687 M�nchen t +49 (0) 89 5600 - 1376 e anna-verena.linder <mailto:[EMAIL PROTECTED]> @tns-infratest.com www.tns-infratest.com <http://www.tns-infratest.com/> www.tns-global.com <http://www.tns-global.com/> ________________________________ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
