This one is about Glassfish 2.1.x and JMX connectivity through
firewall. Basically, we’re struggling with the random port allocation
for the RMIServer and a client like VisualVM fails to connect through a
firewall, even after setting
-Dcom.sun.aas.jconsole.<instancename>.cbport = <port>, as documented
here :
https://blogs.oracle.com/tronds/entry/glassfish_and_jmx_through_a
I was looking around in the codebase and found that in the JSR 160
connector, the JmxConnectorServerDriver expects the JMX service url to
be of the form "service:jmx:rmi://localhost:" +
port1 + "/jndi/rmi://localhost:" + port2 + "/jmxrmi" where port1
is the RMIserver port and port2 is the JMXConnector RMIRegistry port?
Does this mean VisualVM has to pass in a JMX service URL of this form?