1 Reply Latest reply on Mar 21, 2006 8:44 AM by beatificmale

    Context replication

    tremalnaik

      Hello, I have successfully setup Session replication in Jboss, with an Apache web server as load balacer, redirecting requests to a cluster of tomcat servers. Single Sign On is configured, so now I magically provide to the users a fault-tolerant application.

      But... I make use of a Tomcat Valve to filter requests upon session limiting criteria, and the valve users a static hashmap to trace user sessions. If a user logins to one server, this cannot read the informations stored in the other servers static hasmaps.

      So, how to replicate this static variable across the cluster?

      TREMALNAIK

        • 1. Re: Context replication
          beatificmale

          Hello Tremalnaik,

          My request is out of your question and I cannot help you.

          But, I would be grateful if you can help me with the settings required for enabling session replication.

          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).

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

          Please help me.