if(trace) { log.trace(connectionDelegate + " not configured, configuring ..."); }
int serverID = connectionDelegate.getServerID();
Version versionToUse = connectionDelegate.getVersionToUse();
JMSRemotingConnection remotingConnection = connectionDelegate.getRemotingConnection();
// install the consolidated remoting connection listener; it will be de-installed on
// connection closing by ConnectionAspect
ConsolidatedRemotingConnectionListener listener =
new ConsolidatedRemotingConnectionListener();
remotingConnection.addConnectionListener(listener);
if (versionToUse == null)
{
throw new IllegalStateException("Connection version is null");
}