registerConnectionFactory(this.getName(), clientID, jndiBindings, locatorURI,
registerConnectionFactory(getServiceName().toString(), clientID, jndiBindings, locatorURI,
   public synchronized void startService() throws Exception   {      try      {         started = true;                  if (connectorObjectName == null)         {            throw new IllegalArgumentException("A Connector must be specified for each Connection Factory");         }                  if (serverPeerObjectName == null)         {            throw new IllegalArgumentException("ServerPeer must be specified for each Connection Factory");         }               String locatorURI = (String)server.getAttribute(connectorObjectName, "InvokerLocator");                  ServerPeer serverPeer = (ServerPeer)server.getAttribute(serverPeerObjectName, "Instance");                  connectionFactoryManager = serverPeer.getConnectionFactoryManager();         connectorManager = serverPeer.getConnectorManager();         connectionManager = serverPeer.getConnectionManager();                  long leasePeriod = ((Long)server.getAttribute(connectorObjectName, "LeasePeriod")).longValue();                  // if leasePeriod <= 0, disable pinging altogether                  int refCount = connectorManager.registerConnector(connectorObjectName.getCanonicalName());                  boolean enablePing = leasePeriod > 0;                  if (refCount == 1 && enablePing)         {            // install the connection listener that listens for failed connections                        server.invoke(connectorObjectName, "addConnectionListener",                  new Object[] {connectionManager},                  new String[] {"org.jboss.remoting.ConnectionListener"});                              }                  // We use the MBean service name to uniquely identify the connection factory                  connectionFactoryManager.            registerConnectionFactory(this.getName(), clientID, jndiBindings, locatorURI,                                      enablePing, prefetchSize, defaultTempQueueFullSize,                                      defaultTempQueuePageSize, defaultTempQueueDownCacheSize,                                      clustered);               InvokerLocator locator = new InvokerLocator(locatorURI);         String info =            "Connector " + locator.getProtocol() + "://" + locator.getHost() + ":" + locator.getPort();                          if (enablePing)         {            info += " has leasing enabled, lease period " + leasePeriod + " milliseconds";         }         else         {            info += " has lease disabled";         }               log.info(info);         log.info(this + " deployed");      }      catch (Throwable t)      {         throw ExceptionUtil.handleJMXInvocation(t, this + " startService");      }    }