Hi,
I am trying to create a JMX Connector Server using the RMI service with the code below
Code:
JMXServiceURL url = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://localhost:9999/server");
JMXConnectorServer cs = JMXConnectorServerFactory.newJMXConnectorServer(url, null, mbs);
cs.start();
I do a
before I run the program
it works on Windows runing Java 1.5, but on my Linux machine with Java 1.5 I get this error
Code:
Error: java.io.IOException: Cannot bind to URL [rmi://localhost:3450/server]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused]
I am thinking it's because of my linux setup, any ideas what?