mbeanServer.invoke(connector, "addInvocationHandler",
mbeanServer.invoke(connectorName, "addInvocationHandler",
   private void initializeRemoting() throws Exception   {      String s = (String)mbeanServer.invoke(connector, "getInvokerLocator",                                            new Object[0], new String[0]);      locator = new InvokerLocator(s);            //Note - There seems to be a bug (feature?) in JBoss Remoting which if you specify      //a socket timeout on the invoker locator URI then it always makes a remote call      //even when in the same JVM      log.debug("LocatorURI: " + getLocatorURI());      // add the JMS subsystem            handler = new JMSServerInvocationHandler();      mbeanServer.invoke(connector, "addInvocationHandler",                         new Object[] {"JMS", handler},                         new String[] {"java.lang.String",                                       "org.jboss.remoting.ServerInvocationHandler"});                  }