public synchronized void start(StartContext context) throws StartException {
ROOT_LOGGER.debug("Starting remote JMX connector");
setRmiServerProperty(serverPortBinding.getValue().getAddress().getHostAddress());
try {
SocketBinding registryBinding = registryPortBinding.getValue();
RMIServerSocketFactory registrySocketFactory = new JMXServerSocketFactory(registryBinding);
SocketBinding rmiServerBinding = serverPortBinding.getValue();
RMIServerSocketFactory serverSocketFactory = new JMXServerSocketFactory(rmiServerBinding);
registry = LocateRegistry.createRegistry(getRmiRegistryPort(), null, registrySocketFactory);
HashMap<String, Object> env = new HashMap<String, Object>();
rmiServer = new RMIJRMPServerImpl(getRmiServerPort(), null, serverSocketFactory, env);