git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@765133 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2009-04-15 11:01:29 +00:00
parent ff59a598cc
commit 0c89959c59
1 changed files with 3 additions and 5 deletions

View File

@ -549,10 +549,7 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge, Br
// a network subscription so there is a need to synchronise on a shared entity
synchronized(brokerService.getVmConnectorURI()) {
if (isDuplicateNetworkSubscription(info)) {
if (LOG.isDebugEnabled()) {
LOG.debug(configuration.getBrokerName() + " Ignoring sub from " + remoteBrokerName + ", destination " + info.getDestination()
+ ", for " + info.getConsumerId() + " as a duplicate. Already subscribed via network subscription :" + info);
}
// trace in method
return;
}
if (addConsumerInfo(info)) {
@ -974,7 +971,8 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge, Br
if (!networkConsumers.isEmpty()) {
if (matchFound(candidateConsumers, networkConsumers)) {
if (LOG.isDebugEnabled()) {
LOG.debug(configuration.getBrokerName() + " subscription: " + consumerInfo + " is duplicated by network subscription: "
LOG.debug(configuration.getBrokerName() + " Ignoring duplicate subscription from " + remoteBrokerName
+ ", sub: " + consumerInfo + " is duplicated by network subscription: "
+ sub.getConsumerInfo() + ", networkComsumerIds: " + networkConsumers);
}
isDuplicate = true;