How does JBoss choose which AJP port to use?

JBoss 5.1.0 has a file with a name <INSTANCE>/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xmlthat contains some settings for applying the offset to port numbers. This is used to allow multiple instances to work in the same field without going through painful port reconfiguration for each instance. One file also has XSLT, which also changes the AJP port.

In addition, there is <INSTANCE>/deploy/jbossweb.sar/server.xmlone that allows you to explicitly set ports.

I run two instances of JBoss in the same field.

  • Instance 1: server.xmlSet to use port 8009 for AJP, but bindings-jboss-beans.xmlhas zero offset.
  • Instance 2: server.xmlset to use port 8109 for AJP, and bindings-jboss-beans.xmlhas an offset of 100.

XSLT seems to be configured to change the AJP port number when the port is set by default (8009). However, this does not seem to be happening.

From what I see, the AJP port is selected by value server.xml, not by any value in bindings-jboss-beans.xml. Is this definitely true? Is XSLT inside bindings-jboss-beans.xml a relic from JBoss 4?

thank

Rich

+3
source share
1 answer

Finally, I gathered for several experiments and now I can answer my question.

If the port is set to 8009 in server.xml, then the offset to is applied bindings-jboss-beans.xml, otherwise the port set to is used server.xml.

+2
source

Source: https://habr.com/ru/post/1758929/


All Articles