[jboss-user] [Management, JMX/JBoss] - Re: how to get a user defined object invoked by mbeanserver

momo_1204 do-not-reply at jboss.com
Wed Aug 9 08:49:22 EDT 2006


Thank God!
done!
haha

Hashtable env = new Hashtable();
  | 		env.put("java.naming.factory.initial",
  | 				"org.jboss.naming.HttpNamingContextFactory");
  | 		env.put("java.naming.provider.url",
  | 				"http://momo:8080/invoker/JNDIFactory");
  | 		env.put("java.naming.factory.url.pkgs", "org.jboss.naming.client");
  | 		InitialContext ctx = new InitialContext(env); // From jndi.properties
  | 		MBeanServerConnection server = (MBeanServerConnection) ctx
  | 				.lookup("jmx/invoker/HttpAdaptor");

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964039#3964039

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964039



More information about the jboss-user mailing list