aspose file tools*
The moose likes Tomcat and the fly likes Tomcat Native Load Balancer - sticky setting not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Native Load Balancer - sticky setting not working" Watch "Tomcat Native Load Balancer - sticky setting not working" New topic

Tomcat Native Load Balancer - sticky setting not working

Mark Mosley

Joined: Jun 10, 2013
Posts: 1

I am trying to set up load balancing for an application that utilizes tomcat 5.5 (two tomcat sessions on one server). I was able to get the LB working, confirmed by the "STATUS" page. I also created a "HELLO FROM TOMCATx" on each server and saw it switch back and forth from 1 and 2 upon hitting each browser refresh.

I am having problems with the application, and I think the problem is related to the session not sticking to the same tomcat server that did the authentication. I configured the environment with sticky session enabled, but it doesn't seem to work. I would expect that if it was working, refreshing the browser would always show the same response "HELLO FROM TOMCAT1" or "HELLO FROM TOMCAT2". It that correct?

Here is my file:








I have the AJP port configured on each server.xml file and the jvmRoute="tomcat1" or jvmRoute="tomcat2" respectively.

Let me know if you have any thoughts or comments about what I am doing wrong here.

Thank you,
I agree. Here's the link:
subject: Tomcat Native Load Balancer - sticky setting not working
Similar Threads
Apache+mod_jk+Tomcat : something wrong?
trying to get mod_jk working with apache2.2.22 on RHEL 4 with two tomcat servers all on the same mac
Tomcat 6 Cluster with Apache 2.2.9 issues
Tomcat lbfactor weight not working
Simulate HTTPS in Tomcat connector or Apache config?