client = new Client(serverLocator, getConfig());
Map config = getConfig(); client = new Client(serverLocator, config);
   protected void setUpConnection() throws Throwable   {      if (log.isTraceEnabled()) { log.trace("connecting to " + serverLocator); }      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";      client = new Client(serverLocator, getConfig());      // We explictly set the Marshaller since otherwise remoting tries to resolve the marshaller      // every time which is very slow - see org.jboss.remoting.transport.socket.ProcessInvocation      // This can make a massive difference on performance. We also do this in      // ServerConnectionEndpoint.setCallbackClient.      client.setMarshaller(new JMSWireFormat());      client.setUnMarshaller(new JMSWireFormat());      client.setSubsystem(ServerPeer.REMOTING_JMS_SUBSYSTEM);      if (log.isTraceEnabled()) { log.trace("created client"); }      bindPort = PortUtil.findFreePort("localhost");      // Create callback server      String callbackServerURI;      if (isMultiplex)      {         callbackServerURI = "multiplex://" + thisAddress + ":" + bindPort + params +                             "&serverMultiplexId=" + id;      }      else      {         callbackServerURI = serverLocator.getProtocol() + "://" + thisAddress +                             ":" + bindPort + params;      }      InvokerLocator callbackServerLocator = new InvokerLocator(callbackServerURI);      if (log.isTraceEnabled()) { log.trace("starting callback server " + callbackServerLocator.getLocatorURI()); }      callbackServer = new Connector();      callbackServer.setInvokerLocator(callbackServerLocator.getLocatorURI());      callbackServer.create();      callbackServer.addInvocationHandler(JMS_CALLBACK_SUBSYSTEM, callbackManager);      callbackServer.start();      if (log.isTraceEnabled()) { log.trace("callback server started"); }      client.connect();      dummy = new DummyCallbackHandler();            client.addListener(dummy, callbackServerLocator);   }