1 Reply Latest reply on Oct 17, 2005 2:06 PM by Andy Nguyen

    AJP port with clustered instances on the same machine

    Preston Romney Newbie

      I am trying to setup mod_jk and I am getting a little confused. I have multiple instances in my cluster on the same machine, and am using the binding manager in order to avoid port conflicts. In order to setup my workers.properties I need to know the AJP port - which by default is 8009.

      My question is: How do I determine what the AJP port is? If I look in my bindings.xml file, I cant understand how it is assigning the AJP port. Many of the ports defined in the file are very easy to determine and reassign - however it looks like some are defined in the xsl section of the file, and there is some sort of equation performed on the ports.

      If I look in my log files, I can see that my AJP ports are 8109 for one node and 8209 for the other. But I would like to know if there is a better way to determine this. I would like to know how jboss is incrementing these values, and understand what the bindings.xml is doing.


        • 1. Re: AJP port with clustered instances on the same machine
          Andy Nguyen Newbie

          In sample-bindings.xml, the ajp port is calculated using the http port:

           <service-config name="jboss.web:service=WebServer"
           <xsl:variable name="portAJP" select="$port - 71"/>
           <binding port="8080"/>

          So for the ports-default config, the ajp port is 8009. For the ports-01 config, the ajp port is 8109 (http port is configured as 8180).