[jboss-user] [Management, JMX/JBoss] - Re: service URL
PeterJ
do-not-reply at jboss.com
Wed Apr 23 10:31:39 EDT 2008
I have been unable to come up with a url string that you can pass to JMXServiceURL for JBoss. Even googling did not yield anything. Instead, you need to use JNDI to look up the JMX server and go from there. Something like this:
Hashtable env = new Hashtable();
| String factory="org.jnp.interfaces.NamingContextFactory";
| env.put(Context.INITIAL_CONTEXT_FACTORY, factory);
| String url1 = "jnp://localhost:1099";
| env.put(Context.PROVIDER_URL, url1);
| Context ctx = new InitialContext(env);
| MBeanServerConnection mconn =(MBeanServerConnection)ctx.lookup("jmx/invoker/RMIAdaptor");
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146206#4146206
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146206
More information about the jboss-user
mailing list