Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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://1.1.1.1:8010/testing keepalive=On loadfactor=1 ping=10 ttl=600
    BalancerMember ajp://2.2.2.2:8010/testing keepalive=On loadfactor=1 ping=10 ttl=600
</Proxy>
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

1 Answer 1

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://1.1.1.1:8010/testing 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

 
discard

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.