Looku[ the server connection via JNDI.  To do this, replace your first line of 
code with the following:

Hashtable env = new Hashtable();
  | String factory = "org.jnp.interfaces.NamingContextFactory";
  | env.put(Context.INITIAL_CONTEXT_FACTORY, factory);
  | String url1 = "jnp://localhost:1100";
  | 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=3975622#3975622

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975622
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to