2 Replies Latest reply on Nov 15, 2005 3:35 AM by chris_katz

    Clustered HTTP session problem

    chris_katz

      I've set up a 2 node cluster using JBoss 4.0.2.
      Apache2 with mod_jk is used as a load balancer with sticky sessions set to true.
      The clients of my application would be web browsers, Java and other(non-Java) clients -- some of them not supporting session cookies. I've set to "false" the cookies attribute in Tomcat's context.xml and implemented the app. to use URL rewriting.

      There is a particular problem: session IDs generated from one server have a suffix ".node1", while from the other - don't.
      The first node seems to be a kind of "preferred" node by Apache(although there is on "local_worker_only" set in worker.properties). When accessing the application from a web browser a new HTTP session is established only when accessing the node with suffixed session IDs. Attempts to establish a session to the other node are unsuccessful.

      UseJK attrib. is set to "true" in both server's jboss-service.xml

      I won't post any config files at this stage.
      Any help/hint will be appreciated!

        • 1. Re: Clustered HTTP session problem

          1. You can make sure that your setup is working correctly by runnign with "sticky" session with web access only.

          2. Upgrade to 4.0.3. I remember I have fixed the mod_jk fail over problem in later release (not sure exactly which one though).

          -Ben

          • 2. Re: Clustered HTTP session problem
            chris_katz

            Hi,

            Thank you for the feedback. The clustered config. is functioning quite fine. It turned out(after comparing the 2 nodes' config. files) that the problem was caused by misspelled attribute "jvmRoute"...and obviously there were no session ID sufixes generated from that node.

            Anyway, I will follow your advice and upgrade to 4.0.3

            thanks again!