Quote:
As stated above, the code in Example 2-5 can be used to monitor applications through a firewall, which might not be possible if you use the out-of-the-box monitoring solution. The com.sun.management.jmxremote.port management property specifies the port where the RMI Registry can be reached but the ports where the RMIServer and RMIConnection remote objects are exported is chosen by the RMI stack.
So which of these ports is configured with the jmx.port property? The port of the RMI registry, or the port of the RMI server where the remote objects are exposed?