// to insure the client-side stack is in a deterministic state
broadcastFailoverEvent(new FailoverEvent(FailoverEvent.FAILOVER_STARTED, this));
int failedNodeID = state.getServerID();
ConnectionFactoryDelegate clusteredDelegate = state.getClusteredConnectionFactoryDelegate();
// try recreating the connection
log.trace("Creating new connection");
res = clusteredDelegate.
createConnectionDelegate(state.getUsername(), state.getPassword(), failedNodeID);
log.trace("Created connection");
if (res == null)
{