0 Replies Latest reply on Jul 29, 2010 1:51 PM by jbossrmi123

    Apache + JBoss 5 usage

    jbossrmi123

      Hello All,

      Background: We need a setup where one Apache acts as a Web Server to multiple JBoss 5.1.0.GA server configurations started with -c option.

      I have followed the recommendations I read in this forum and the following wiki (and I think also mentioned in a JBoss manual):

      http://community.jboss.org/wiki/usingmodjk12withjboss

       

      My questions were the following:

      1) As far as I have read, this is the recommended way to go if we want to use Apache with JBoss. Is that correct?

       

      2) This setup is mostly discussed in terms of load balancing. I dont need load balancing, so I have configured my workersurimap as below. Is this a good way?

       

      3) Things seem to work without the 'jvmRoute' attribute specified in server.xml. Is this attribute only necessary for load balancing? I assume since the JBoss apps are started with -c , each is on it's own JVM with Tomcat listening at a unique AJP port?

       

      Please let me know. Thanks.

       

      URIWorkerMap.properties
      /App1/*=worker1

      /App2/*=worker2

       

      workers.properties
      worker.list=worker1,worker2

       

      worker.worker1.port = xxxx
      worker.worker1.host= localhost
      worker.worker1.type=ajp13
      worker.worker1.ping_mode=A

       

      worker.worker2.port = xxxy
      worker.worker2.host= localhost
      worker.worker2.type=ajp13
      worker.worker2.ping_mode=A