Are you trying to get the mbean server for JBoss?  If so, I usually use the 
following code:

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=3952077#3952077

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


_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to