1 Reply Latest reply on May 7, 2004 3:58 PM by townej2

    How do I set the workerName for session affinity in a load b

    townej2

      I am using jboss 3.2.1 with Jetty and there are 2 servers in the cluster.
      Apache is directing requests to JBOSS via mod_rewrite.
      I want to make sure all requests in a session hit the same server by adding a workerName
      to the end of the sessionID and using mod_rewrite to send requests to the right server

      I can set the workerName in the jmx-console, but I would like to configure it in the jbossweb-jetty.sar/META-INF/jboss-service.xml so I can determine which server a session started on.

      How is the workerName set?

      Thanks in advance.
      JT


        • 1. Re: How do I set the workerName for session affinity in a lo
          townej2

          I was able to get the workerName value set using the jetty-web.xml file in the WebInf directory of the war I am deploying.

          I would rather set it in a jboss config file. How is it done??
          Here is my jetty-web.xml file.

          <?xml version="1.0" encoding="ISO-8859-1"?>
          DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure 1.2//EN" "http://jetty.mortbay.org/configure_1_2.dtd"
          Configure class= "org.mortbay.jetty.servlet.WebApplicationContext"
          Call name="getWebApplicationHandler"
          Call name="getSessionManager">
          Set name="workerName" type="string" app1 /Set
          /Call
          /Call
          /Configure