Env: JDK1.6, Spring 2.5
I am attempting to manually open remoting to an MBean server as follows:
This causes the following exception. I have tried this by startingCode:String url = "service:jmx:rmi:///jndi/rmi://10.1.1.1:7819/MyDomain"; JMXConnector jmxc = MXConnectorFactory.connect(url, null); MBeanServerConnection conn = jmxc.getMBeanServerConnection(); //...
rmiregistry explicitly; still no avail.
What am I doing wrong?Code:'service:jmx:rmi:///jndi/rmi://10.1.1.1:7819/MyDomain java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.NameNotFoundException: MyDomain
/Ur


Reply With Quote