0 Replies Latest reply on Jul 16, 2003 11:18 AM by djs1w

    Apache sticky sessions not working

    djs1w Newbie

      I followed the steps listed in the JBoss Clustering manual, but I'll start my two Jboss 3.0.7 servers, start my Apache 1.3.x server and then pull up my application through Internet Explorer.

      Now, I'll see on the server console that the HttpContext has been started, so I'll expect all the requests to goto that server. But when I log into the application, the second server's console show's the jsession that's being created. Here's my worker.properties file, seems pretty basic to me.

      #
      # workers.properties
      #

      ps=\

      # Set properties for ccmjboss1
      worker.ccmjboss1.type=ajp13
      worker.ccmjboss1.host=192.168.146.86
      worker.ccmjboss1.port=8009
      worker.ccmjboss1.lbfactor=1
      #worker.ccmjboss1.local_worker=1

      # Set properties for ccmjboss2
      worker.ccmjboss2.type=ajp13
      worker.ccmjboss2.host=192.168.146.99
      worker.ccmjboss2.port=8009
      worker.ccmjboss2.lbfactor=1
      #worker.ccmjboss2.local_worker=1

      # Set properties for loadbalancer (ajp13)
      worker.loadbalancer.type=lb
      worker.loadbalancer.balanced_workers=ccmjboss1,ccmjboss2
      worker.loadbalancer.sticky_session=1
      #worker.loadbalancer.local_worker_only=1

      # Define workers list
      worker.list=loadbalancer