2 Replies Latest reply on Aug 20, 2014 9:30 AM by kishoremadhana

    How to Configure Sticky Session in JBoss AS 7

    crimsonretty

      Hi! Everyone!

       

      I don't know how to configure sticky session in JBoss AS 7.

       

      I configure server.xml as following in JBoss 4.0.3

       

      <Engine name="jboss.web" defaultHost="localhost" jvmRoute="node1">

       

      Help please!!

       

       

      Thanks in advance!!

        • 1. Re: How to Configure Sticky Session in JBoss AS 7
          pferraro

          If you're using mod_cluster for your load balancer, you don't have to assign a jvmRoute - it will be auto-generated.  You can override the auto-generation using the "jboss.mod_cluster.jvmRoute" system property. 

           

          For load balancers other than mod_cluster, you must specify the jvmRoute using the "jvmRoute" system property.

           

          Enabling sticky sessions in the load balancer itself is another matter, the configuration of which is load balancer dependent.  In mod_cluster, sticky sessions are enabled by default.

          • 2. Re: How to Configure Sticky Session in JBoss AS 7
            kishoremadhana

            Hi Ferraro,

             

            i am not using mod_cluster as a load balancer.

             

            i want to achieve sticky session between two different nodes.

             

            Please help !

             

            Thanks in advance!!