Montag, 23. April 2012
Obtain MBeanServerConnection
Properties env = new Properties();
env.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");

env.setProperty(Context.PROVIDER_URL, "jnp://[hostname]:1099");

Context ctx = new InitialContext(env);

MBeanServerConnection server = (MBeanServerConnection) ctx.lookup("jmx/invoker/RMIAdaptor");

... link (0 Kommentare)   ... comment