0 Replies Latest reply on Dec 9, 2010 10:03 AM by jpsabadini

    Invalidate session on JBoss Cluster

    jpsabadini

      Hi folks,

       

      I have my system running on a Jboss 4.2.2GA cluster with two nodes. Users can login (typical login screen) and access to the system, the only particularity here is that multiple login is allowed, that is to say, two users can login to the system with same user and pass.

       

      So far, so good. My problem is that administrators users eventually ejects users (with session.invalidate() method) and ejects only one user. Let me be more clear:

       

      Jboss-node1 (10.0.20.103)

           |

           |_>User 1 logged in

       

      Jboss-node2 (10.0.20.172)

           |

           |_>User 2 logged in

       

      This two nodes are configured as this way: http://docs.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/4.2/html/Server_Configuration_Guide/clustering-http-state.html and http://docs.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/4.2/html/Server_Configuration_Guide/clustering-http-app.html .

       

      I don't touch any apache conf because I thought that if the session is being replicated and I invalidate the session in one node, so the session in the another node would be invalidated too! Am I right?

       

      I checked in the jmx-console and the sessions has the exact hash, so the session is being replicated successfully. But still can't eject the two logged users, just eject only one...

       

      I'm starting Jboss with: run.bat -c all -b 0.0.0.0 -Djboss.partition.name="TESTPART"

       

      Any thoughts?

       

      Regards,

      JP