Can anyone confirm that it is possible to fix the dynamically
generated RMI port number when you are trying to use
HTTP tunneling. Numerous posts have suggested that you need to
set the following value in jboss-service.xml file:
<mbean code="org.jboss.naming.NamingService" name="jboss:service=Naming"> <!-- The listening port for the bootstrap JNP service. Set this to -1 to run the NamingService without the JNP invoker listening port. --> <attribute name="Port">1099</attribute> <attribute name="RmiPort">XXXX</attribute> </mbean>
The RmiPort attribute is the correct one to fix the rmi service port used by the jndi naming service and this works fine for me to control this port.