users@glassfish.java.net

GF 2.1 - JMX through firewall

From: <satadru.roy_at_bchydro.com>
Date: Thu, 17 Oct 2013 23:47:43 +0000 (UTC)

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?