this.remotingConnectionListener = remotingConnectionListener; remotingConnectionListener.setConnectionState(this);
   public ConnectionState(int serverID, ConnectionDelegate delegate,                          JMSRemotingConnection remotingConnection, Version versionToUse,                          MessageIdGenerator gen)      throws Exception   {      super(null, (DelegateSupport)delegate);      if (log.isTraceEnabled()) { log.trace(this + " constructing connection state"); }      children = new SyncSet(new HashSet(), new WriterPreferenceReadWriteLock());      this.remotingConnection = remotingConnection;      this.versionToUse = versionToUse;      // Each connection has its own resource manager. If we can failover all connections with the      // same server id at the same time then we can maintain one rm per unique server as opposed to      // per connection.      this.resourceManager = new ResourceManager();      this.idGenerator = gen;      this.serverID = serverID;   }