Hi
I created a jira about that where I planned to add a contribution agent
allowing such kind of connection.
RegardsJB
Sent from my Samsung device
-------- Original message --------
From: Martin Lichtin <[email protected]>
Date: 03/06/2015 14:23 (GMT+01:00)
To: [email protected]
Subject: Accessing Karaf's JMX server through a firewall
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