-
Bug
-
Resolution: Done
-
Major
-
jboss-fuse-6.2
-
%
-
-
On machines with multiple network interfaces it is difficult to get remote JMX working for administration. JMX uses RMI for its transport, and the RMI server may return the wrong IP number or hostname in its stub. The system property java.rmi.server.address is provided to overcome this problem, by forcing the RMI implementation to return a specific IP or host to the JMX client. However, Fuse 6.2 does not fully respect this variable, although 6.1 did. When using a service URL like this:
service:jmx:rmi://127.0.0.1:44444/jndi/rmi://127.0.0.1:1099/karaf-root
then the stub returned for port 1099 has the correct value set by java.rmi.server.address,whilst the stub returned for port 44444 has a system-derived value, which may be that of an interface that is not reachable from outside the Fuse host.