Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Each geronimo cluster member must have a unique jvmRoute designation. The jvmRoute attribute allows the mod-jk load balancer to provide "sticky session" (sending all requests for the same httpsession to the same cluster member). This is possible since the load balancer places the jvmRoute value in the session cookie (or encoded url) that is returned to the web browser.

The jvmRoute attribute can be set by updating the var/config/config.xml file as follows:

<configuration name="geronimo/tomcat/1.0/car">
<gbean name="TomcatResources">
</gbean>
+ <gbean name="TomcatEngine">
+ <attribute name="initParams">
+ name=Geronimo
+ jvmRoute=node98
+ </attribute>
+ </gbean>
<gbean name="TomcatWebConnector">
<attribute name="host">0.0.0.0</attribute>
<attribute name="port">8080</attribute>
<attribute name="redirectPort">8443</attribute>
</gbean>

For Geronimo v1, you should specify the jvmRoute on the cmdline when the server is started.

...