RemotingJMXWrapper mbean = new RemotingJMXWrapper(new InvokerLocator("socket:
RemotingJMXWrapper mbean;  String locatorURI; if (multiplex) { locatorURI = "multiplex: } else { locatorURI = "socket: }  log.debug("Using the following locator uri:" + locatorURI);  InvokerLocator locator = new InvokerLocator(locatorURI);  log.debug("Started remoting connector on uri:" + locator.getLocatorURI());  mbean = new RemotingJMXWrapper(locator);
   private void startRemoting() throws Exception   {      RemotingJMXWrapper mbean =            new RemotingJMXWrapper(new InvokerLocator("socket://" + ipAddressOrHostName + ":19895"));      mbeanServer.registerMBean(mbean, REMOTING_OBJECT_NAME);      mbeanServer.invoke(REMOTING_OBJECT_NAME, "start", new Object[0], new String[0]);      log.debug("started " + REMOTING_OBJECT_NAME);   }