if (callbackServer == null) { callbackServer = new Connector(); callbackServer.setInvokerLocator(new InvokerLocator(callbackServerURI).getLocatorURI()); callbackServer.start();
Connector callbackServer = new Connector();
   public static Connector getCallbackServer() throws Exception   {      if (callbackServer == null)      {         callbackServer = new Connector();         callbackServer.setInvokerLocator(new InvokerLocator(callbackServerURI).getLocatorURI());         callbackServer.start();         // TODO this is unnecessary         callbackServer.addInvocationHandler("JMS", new ServerInvocationHandlerImpl());      }      return callbackServer;   }