System.out.println("Starting remoting server with locator uri of: " + locator.getLocatorURI());
connector = new Connector();
connector.setInvokerLocator(locator.getLocatorURI());
connector.create();
MockServerInvocationHandler handler = new MockServerInvocationHandler();
connector.addInvocationHandler("mock", handler);
ObjectName obj = new ObjectName("jboss.remoting:type=Connector,transport=" + locator.getProtocol());
server.registerMBean(connector, obj);
//connector.create();