Let's say I have a JNDI Binding with a port number in it like this:
<subsystem xmlns="urn:jboss:domain:naming:2.0">
<bindings>
<simple name="java:global/test/SOMEURL" value="http://localhost:8080/someurl"/>
<bindings/>
</subsystem>
And I want the port to be the actual port of the JBoss instance.
The port is set via -Djboss.socket.binding.port-offset=x
I have tried it like this, but it always defaults to 8080
:
<simple name="java:global/test/SOMEURL" value="http://localhost:${jboss.http.port:8080}/someurl"/>
Is there any way to read the current port, or to add jboss.socket.binding.port-offset
to 8080 manually?