I configured Jboss 4.2.3 2 node cluster with Apache/mod_jk connector.
The applicaion deployment (thru farm) is fine... but, I see weird behavior some times.
1) My application is using JAAS authentication. I made modifications to 'login-config.xml' of both the nodes; When I access application thru apache port, the request is sent to both the nodes and it fails first time... on page refresh, reentering the credentials works fine.
2) I specified session stickiness.. still my app. requests are routed to both the nodes; my understanding is, the session should be created on one node and all subsequent requests should be sent to the same.. if the node goes down, the session should be replicated on next node and requests should be routed to that.. but, the same is not happening in my case.
here is my conf:
And Jboss xmls are modified to define 'jvmRoute'
< Engine name="jboss.web" defaultHost="localhost" jvmRoute="node1" >
for both nodes.
Also, I set
Any pointers would be highly appreciated.
This made some changes... now, the setup is working fine.
There were duplicate 'jvmRoute' entries... I fixed them as per Brian's comments. now, it works fine.