/** * Start a JMXConnectorServer and register it with Jini Lookup Service. * * @param server the JMXConnectorServer to start and register. * @param env the environment Map. * @param agentName the AgentName with which the proxy must be registered in the Jini Lookup * Service. */ public void start(JMXConnectorServer server, Map env, String agentName) throws IOException, ClassNotFoundException { // Start the JMXConnectorServer // server.start(); // Get a pointer to Jini Lookup Service // final ServiceRegistrar registrar = getRegistrar(); // Create a JMXConnector proxy to register with Jini // final JMXConnector proxy = server.toJMXConnector(env); // Register the proxy with Jini Lookup Service. // register(registrar, proxy, agentName); }