-
1. HTTP Session Sharing
sharda01 Apr 25, 2011 4:09 AM (in response to hoffmanjon)Hi Jon,
I would like to know if you were able to find the solution for this. We are having a similar issue wherein hardware based load balancer is used with sticky sessions. So as far the request goes to same jboss node, the session is retained but as soon as request goes to another node, the session is lost.
-
2. HTTP Session Sharing
mp911de Apr 26, 2011 12:07 AM (in response to sharda01)Hi there,
you just need to set Clustering up (with adding <distribuatable /> to your web.xml), then it works fine (see http://community.jboss.org/wiki/HttpSessionReplication for further information). Mod_jk isn't needed as the session-state is replicated inside JBoss.
When your JBoss sends his internal IP, you can set proxyName/proxyPort in your HTTP Connector (server.xml). This way JBoss returns the Proxy-Address (your LB's IP) on getLocalName(), getLocalAddr() and getServerName().
Best regards,
Mark