I'm trying to set up load balancing between apache and JBOSS 4.2.2AS. It tried with mod_jk and mod_proxy, load balancing is working with both methods. I need to set up sticky session, but I can't manage to make JBoss/Tomcat append the jvmroute parameter to the JSESSIONID. In $JBOSS_HOME/server/default/deploy/jboss-web.deployer/server.xml I have : Engine name="jboss.web" defaultHost="localhost" jvmRoute="node4"
and in $JBOSS_HOME/server/default/deploy/jboss-web.deployer/META-INF/jboss-service.xml I have : attribute name="UseJK">true</attribute