Hi, I am trying to access an MBean from a remote client. From the wiki page:
http://wiki.jboss.org/wiki/Wiki.jsp?page=JNDIClientConfiguration I was told to replace 'localhost' with my IP address to get an InitialContext connected to my JBoss server. So here's what I did in my code: Properties props = new Properties(); | props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); | props.put(Context.PROVIDER_URL, "jnp://10.0.0.3:1099"); | | InitialContext ic = new InitialContext(props); | RMIAdaptor server = (RMIAdaptor) ic.lookup("jmx/rmi/RMIAdaptor"); | . | . | . but I get the following error when the lookup() is executed: javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused: connect] Did I do something wrong? Why is it still trying to connect to localhost? Thanx for your help. Norton View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3929174#3929174 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3929174 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user