Hi to all.

I'm using Tomcat 6.0.26 on RHEL 5.6 machine and Apache 2.2.3.
I don't understand if the jvmroute for stickysession must be unique!

My scenario is this:
- two machine
- two tomcat instance per machine
- proxy balancer on apache actived and connected with tomcat in full mesh

So I have:
- node01, node02 (the machines)
- istance01, instance02 on node01 and node02

Tomcat instances are not configured for Cluster/Session Replication.
On each tomcat instance I setted jvmroute parameter as follow:

a. on node01, jvmroute="istance01_node01" and "instance02_node01" for instance01 and istance02, respectively; b. on node01, jvmroute="istance01_node02" and "instance02_node02" for instance01 and istance02, respectively.

So my Apache configuration for stickysession is as follow:

-----
ProxyPass /myApp/ balancer://balance-this/myApp/

<Proxy balancer://balance-this>
        BalancerMember ajp://node01:10505 route=instance01_node01
        BalancerMember ajp://node01:10505 route=instance02_node01
        BalancerMember ajp://node02:10505 route=instance01_node02
        BalancerMember ajp://node02:10505 route=instance02_node02

        ProxySet stickysession=JSESSIONID nofailover=On
</Proxy>
-----

And this works fine!

BUT, if I have jvmroute parameter configured with the same value for all my tomcat instance (e.g. jvmroute="myRoute") and so apache configured as follow


-----
ProxyPass /myApp/ balancer://balance-this/myApp/

<Proxy balancer://balance-this>
        BalancerMember ajp://node01:10505 route=myRoute
        BalancerMember ajp://node01:10505 route=myRoute
        BalancerMember ajp://node02:10505 route=myRoute
        BalancerMember ajp://node02:10505 route=myRoute

        ProxySet stickysession=JSESSIONID nofailover=On
</Proxy>
-----

it still works!!! I do not lose my session!
Why??? Have to jvmroute be unique or not??? Remember, I don't use cluster/session replication feature....

Thanks.
Francesco.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to