diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java b/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java index 61bd41b0ea..1a6efbda4f 100755 --- a/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java +++ b/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java @@ -1173,10 +1173,8 @@ public class TransportConnection implements Service,Connection,Task,CommandVisit synchronized(consumerExchanges){ result=new ConsumerBrokerExchange(); ConnectionState state=lookupConnectionState(id); - synchronized(this){ - context=state.getContext(); - result.setConnectionContext(context); - } + context=state.getContext(); + result.setConnectionContext(context); SessionState ss=state.getSessionState(id.getParentId()); if(ss!=null){ ConsumerState cs=ss.getConsumerState(id);