if (clusterName.equals(info.getClusterName())) {
clusteredConnection = true;
}
if (!remoteNetworkConnector && info.isRemote()) {
try {
final NetworkConnector networkConnector = new NetworkConnector(brokerConnector.getBrokerContainer());
networkConnector.getThreadPool().execute(new Runnable() {
public void run() {
try {
NetworkChannel networkChannel = new NetworkChannel(networkConnector, brokerConnector
.getBrokerContainer(), channel, info.getBrokerName(), info.getClusterName());
networkConnector.addNetworkChannel(networkChannel);
brokerConnector.getBrokerContainer().addNetworkConnector(networkConnector);
networkConnector.start();
}
catch (JMSException e) {
log.error("Failed to create reverse remote channel", e);
}
}