Hi,
I'm trying to setup
Tomcat clustering with Apache server for load balancing. The setup is done using Tomcat v4.1.3 on two RedHat Linux v9 boxes (two instances of 'worker' Tomcat servers) with Apache v2.0.49 running on MS Windows 2000. JDK used with Tomcat is J2SDK v1.4.2 (for Linux). For clustering support, 'tomcat-replication.jar' is used (available as
http://www.apache.org/~fhanik/tomcat-replication.jar) and as connector JK v1.2 is used (available from
http://jakarta.apache.org/site/binindex.cgi).
Configurations are done on both Tomcat instances as well as Apache and setup is up and going. However, when deploying an example web application, it was found that with URL rewriting, session data was getting lost (though session replication was shown in Tomcat logs). Removing URL rewriting solves the problem and environment & application work fine.
Problem is that we need to deploy an existing application on to this environment where URL rewriting is extensively used. Hence, removing the same everywhere is an avoidable option. Please suggest any way to use URL rewriting in a clustered environment (so that session data remain intact).
Thanks in advance,
- Aditya
[ March 25, 2004: Message edited by: Aditya N Jha ]