users@glassfish.java.net

Glassfish JMX RMI and JNDI

From: <forums_at_java.net>
Date: Wed, 25 May 2011 10:23:53 -0500 (CDT)

Hi ! I've a webapp that want to remotly connect to a JMX'ed product (Petals
ESB). /*This is working on Tomcat 6 & 7 (but not on Jboss 6 too).*/

This one try to make :

      JMXServiceURL url = new
JMXServiceURL("service:jmx:rmi:///jndi/rmi://127.0.0.1:7700/jmxRmiConnector");
      JMXConnectorFactory.connect(url, args); //args with credentials

The stacktrace give me these informations :

              INFO:
org.ow2.petals.jmx.exception.ConnectionErrorException: Can not connect using
URI : service:jmx:rmi:///jndi/rmi://127.0.0.1:7700/jmxRmiConnector with
petals/petals
              .... 
              Caused by: javax.naming.NameNotFoundException:
rmi:

 

I've tried to replace the url with
"service:jmx:rmi://127.0.0.1:7700/jndi/rmi://127.0.0.1:7700/jmxRmiConnector".

Does anybody have an idea ?

Thanks in advance.


--
[Message sent by forum member 'yblazart_ippon']
View Post: http://forums.java.net/node/806024