conn.close();
return;
}
BrokerInfo bi = (BrokerInfo)parent.receivePacket(remote, p, getRealRemoteString(), this);
if (bi == null) {
logger.log(logger.DEBUG, "Link = " + this + ", BROKER_INFO rejected");
throw new IOException("BrokerInfo rejected");
}
expectBrokerInfoPkt = false;
Integer v = bi.getClusterProtocolVersion();
if (v != null && v.intValue() >= ProtocolGlobals.VERSION_400) {
com.sun.messaging.jmq.jmsserver.core.BrokerAddress configServer = null;
try {
configServer = parent.getConfigServer();
} catch (Exception e) {
conn.close();
logger.log(logger.DEBUG,
"Exception in getConfigServer: "+e.getMessage()+", link "+this);
return;
}
if (parent.waitForConfigSync() &&
!configServer.equals(bi.getBrokerAddr())) {
if (ClusterManagerImpl.DEBUG_CLUSTER_CONN || ClusterManagerImpl.DEBUG_CLUSTER_PACKET || DEBUG) {
logger.log(logger.INFO, "Waiting for sync with master broker "+configServer+", Please retry "+this);
}
conn.close();
return;