How to export the remote objects for the RMI connector on a given port different than the port being used to bind the RMIConnectorServer to the RMIRegistry?
The com.sun.management.jmxremote.port management property specifies the port number through which you want to enable JMX/RMI connections. It is the port number for binding RMIConnectionServer to the RMIRegistry. To export the remote objects (RMIConnection and RMIServer) on a given port other than the one for RMIRegistry, you can create your own RMI connector server programmatically as follows: JMXServiceURL url = new JMXServiceURL(“service:jmx:rmi://localhost:” + port1 + “/jndi/rmi://localhost:” + port2 + “/server”); where port1 is the port number on which the RMIServer and RMIConnection remote objects are exported and port2 is the port number for binding the RMIConnectorServer to the RMIRegistry.
Related Questions
- How to export the remote objects for the RMI connector on a given port different than the port being used to bind the RMIConnectorServer to the RMIRegistry?
- If a DS33X162 is used to connect to four different remote nodes, is the traffic-forwarding mechanism the same as if I used a cheap 4-port Ethernet switch?
- What type of connector is used between the LT-800 and the coaxial cable to its remote antenna?