Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a jboss and apache setup hosting my .war file. I have enabled session stickiness to forward requests from apache to jboss . Assume I have 2 apache and 2 jboss instances.

Is the below setting correct? Currently session stickyness is not working and each time request is appended with a new JSESSSION ID.

<Proxy balancer://cluster>
    Order deny,allow
    Allow from all
    BalancerMember ajp:// keepalive=On loadfactor=1 ping=10 ttl=600
    BalancerMember ajp:// keepalive=On loadfactor=1 ping=10 ttl=600
ProxyPass /testing balancer://cluster timeout=60 stickysession=JSESSIONID nofailover=On

Do I need to add route variable to the balancer member configuration and do i need to enable useJK flag in jboss?

share|improve this question
up vote 1 down vote accepted

Are the balancer members setting the correct route ID in their session cookies?

Yes, you'll need to define the routes on the BalancerMember lines.

Something like this in your BalancerMember lines:

BalancerMember ajp:// keepalive=On loadfactor=1 ping=10 ttl=600 route=testing1

And the associated ID in your Tomcat config must match:

<Engine name="whatever-its-named" jvmRoute="testing1">
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.