4 Replies Latest reply on Apr 6, 2006 4:51 AM by Gaurav Ashwin

    Session Replication Fails- jboss-4.0.3SP1

    Gaurav Ashwin Newbie

      Hello techies,
      I'm using jboss-4.0.3SP1 & j2sdk1.4.2_03. There are two server-instances of jboss running on two different machines.
      My applications web.xml contains:

      My applications web.xml contains:
      <replication-config>
      <replication-trigger>SET_AND_NON_PRIMITIVE_GET</replication-trigger>
      <replication-granularity>SESSION</replication-granularity>
      </replication-config>


      I'm starting the server with following command:
      GTW_run.bat -c all --host=192.0.0.77

      After hot deployment on one server, 2nd server itself deploys the application using the cluster name(nodes).

      But the issue is that the session is not getting replicated.
      Am I missing any other configuration for clustering in JBOSS.

      Please help me out with all probable solutions.
      Thanks in Advance.
      --Ashwin


        • 1. Re: Session Replication Fails- jboss-4.0.3SP1
          Gaurav Ashwin Newbie

          I'm sorry ! there were some mistakes in my previous post : PLease ignore it.

          I'm using jboss-4.0.3SP1 & j2sdk1.4.2_03. There are two server-instances of jboss running on two different machines.
          My applications web.xml contains:

          My applications jboss-web.xml contains:
          <replication-config>
          <replication-trigger>SET_AND_NON_PRIMITIVE_GET</replication-trigger>
          <replication-granularity>SESSION</replication-granularity>
          </replication-config>


          I'm starting the server with following command:
          GTW_run.bat -c all --host=192.0.0.77

          After hot deployment on one server, 2nd server itself deploys the application using the cluster name(nodes).

          But the issue is that the session is not getting replicated.
          Am I missing any other configuration for clustering in JBOSS?

          Please help me with all probable solutions.
          Thanks in Advance.

          • 2. Re: Session Replication Fails- jboss-4.0.3SP1
            Dhrubojyoti Kayal Newbie

            Yes it seems that you are using sticky session check in the MOD_JK configuration if you are using sticky session. With sticky session tomcat cannot replicate sesssion

            • 3. Re: Session Replication Fails- jboss-4.0.3SP1
              Ian Otahal-Mechura Newbie

              My experience is that you can use sticky session with session replicatio. What are you using for load balancing your nodes? Did you set the correct jvmRoute attribute in your D:\jboss\jboss-4.0.3SP1\server\all\deploy\jbossweb-tomcat55.sar\server.xml file?

              e.g.


              • 4. Re: Session Replication Fails- jboss-4.0.3SP1
                Gaurav Ashwin Newbie

                Ian / Dhrubo,

                Thnx a ton for your precious time and suggestion.

                Actually, I was not using mod_jk and load balancing.

                But now I'm able to implement failover and session replication using mod_jk configs with a common Apache server having nodes pointing to my various servers. I used sticky session and mission accomplished.

                Cheers !