Wanted to ask if anyone sucessfully managed a JMX connection to a Karaf, using only well-known ports (through a firewall)?
By default, JMX uses a random/roaming RMI port, which is a problem when a firewall is inbetween only allowing fixed ports. There are documented ways around it, for example: http://stackoverflow.com/questions/20884353/why-java-opens-3-ports-when-jmx-is-configured http://realjenius.com/2012/11/21/java7-jmx-tunneling-freedom/ So 'com.sun.management.jmxremote.port' and 'com.sun.management.jmxremote.rmi.port' can be set to the same value and only one fixed port is used and needs to be opened in any firewalls. However, I believe these port settings would have no effect, as Karaf programmatically creates the MBean server using the ports configured in org.apache.karaf.management.cfg. Anyone see how this could be supported with Karaf? - Martin
