Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

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?

0
Posted

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?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123