log.debug("Activating cluster connection nodeID=" + nodeUUID + " for server=" + this.server);
}
backup = false;
topology.updateAsLive(manager.getNodeId(), new TopologyMember(connector, null));
if (backupServerLocator != null)
{
// todo we could use the topology of this to preempt it arriving from the cc
try
{
backupServerLocator.close();
}
catch (Exception e)
{
log.warn("problem closing backup session factory", e);
}
backupServerLocator = null;
}
serverLocator = clusterConnector.createServerLocator(true);
if (serverLocator != null)
{
if (!useDuplicateDetection)
{
log.debug("DuplicateDetection is disabled, sending clustered messages blocked");
}
final TopologyMember currentMember = topology.getMember(manager.getNodeId());
if (currentMember == null)
{
// sanity check only
throw new IllegalStateException("InternalError! The ClusterConnection doesn't know about its own node = " + this);