Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#156 NameNotFoundException: 2 JSR160 connectors, same server

v2.0
open
Rakesh Kalra
general (93)
5
2008-07-10
2008-07-10
Robert McEneaney
No

We have 2 RMI registries on different ports on the same server. A JSR-160 connector called 'xyzconnector' sits on each registry at the URLS:

service:jmx:rmi:///jndi/rmi://server-1:9392/xyzconnector
service:jmx:rmi:///jndi/rmi://server-1:9393/xyzconnector

We are able to talk to both connectors via JManage only when JManage is installed on the same server as the RMI registries. When JManage is on a different server, we can only talk to one connector (not sure why it picks one over the other). The connection that fails throws:

Jul 10, 2008 12:37:33 PM org.jmanage.core.management.ServerConnector getServerConnection
INFO: Failed to connect. error=Failed to retrieve RMIServer stub: javax.naming.NameNotFoundException: xyzconnector

We are able to communicate successfully with both connectors with JConsole launched from any machine.

Any ideas?

Thanks,
Robert

Discussion