{
{ log.info("********* STARTING MULTIPLEX");
   private void startRemoting(boolean multiplex) throws Exception   {      RemotingJMXWrapper mbean;      String params = "/?marshaller=org.jboss.jms.server.remoting.JMSWireFormat&" +                      "unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat&" +                      "serializationtype=jboss&" +                      "dataType=jms&" +                      "socketTimeout=0&" +                      "socket.check_connection=false";      String locatorURI;      if (multiplex)      {         locatorURI = "multiplex://" + ipAddressOrHostName + ":9111" + params;      }      else      {         locatorURI = "socket://" + ipAddressOrHostName + ":9111" + params;      }      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);      mbeanServer.registerMBean(mbean, REMOTING_OBJECT_NAME);      mbeanServer.invoke(REMOTING_OBJECT_NAME, "start", new Object[0], new String[0]);      log.debug("started " + REMOTING_OBJECT_NAME);   }