File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Session Replication with URL rewriting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Session Replication with URL rewriting" Watch "Session Replication with URL rewriting" New topic
Author

Session Replication with URL rewriting

Aditya Jha
Ranch Hand

Joined: Aug 25, 2003
Posts: 227

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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session Replication with URL rewriting