resolve AMQ-2121, shared lock needs to be less contentious

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@744975 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2009-02-17 11:57:23 +00:00
parent b4aa979d90
commit 9f8777d3a0
1 changed files with 1 additions and 1 deletions

View File

@ -533,7 +533,7 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge, Br
// in a cyclic network there can be multiple bridges per broker that can propagate
// a network subscription so there is a need to synchronise on a shared entity
synchronized(brokerService) {
synchronized(brokerService.getVmConnectorURI()) {
if (isDuplicateNetworkSubscription(info)) {
if (LOG.isDebugEnabled()) {
LOG.debug(configuration.getBrokerName() + " Ignoring sub from " + remoteBrokerName + ", destination " + info.getDestination()