connectorServer2.start();
address2 = connectorServer2.getAddress();
// The local server
MBeanServer localServer = newMBeanServer();
RemoteMBeanProxy proxy1 = new RemoteMBeanProxy(remoteMLetName, address1, null, null);
JMXConnector cntor = JMXConnectorFactory.connect(address2);
RemoteMBeanProxy proxy2 = new RemoteMBeanProxy(remoteTimerName, cntor.getMBeanServerConnection());
ObjectName proxyName1 = ObjectName.getInstance(":proxy=" + ObjectName.quote(remoteMLetName.getCanonicalName()));
ObjectName proxyName2 = ObjectName.getInstance(":proxy=" + ObjectName.quote(remoteTimerName.getCanonicalName()));
localServer.registerMBean(proxy1, proxyName1);
localServer.registerMBean(proxy2, proxyName2);
JMXServiceURL address3 = new JMXServiceURL("local", "localhost", 0);