System.out.println("Starting remoting server with locator uri of: " + getInvokerLocatorURI());
connector = new Connector();
connector.setInvokerLocator(locator.getLocatorURI());
connector.create();
CallbackInvocationHandler invocationHandler = new CallbackInvocationHandler();
// first parameter is sub-system name. can be any String value.
connector.addInvocationHandler("sample", invocationHandler);
connector.start();