remotingSessionID, clientVMID, versionToUse,
callbackHandler, dupsOKBatchSize);
String connectionID = endpoint.getConnectionID();
ConnectionAdvised connAdvised;
// Need to synchronized to prevent a deadlock
// See http://jira.jboss.com/jira/browse/JBMESSAGING-797
synchronized (AspectManager.instance())
{
connAdvised = new ConnectionAdvised(endpoint);
}
Dispatcher.instance.registerTarget(connectionID, connAdvised);
log.trace("created and registered " + endpoint);