mirror of https://github.com/apache/activemq.git
added some debug to see when consumers are added and removed.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@418435 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
47abda2a7d
commit
5401cf8365
|
@ -141,6 +141,7 @@ abstract public class AbstractRegion implements Region {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Subscription addConsumer(ConnectionContext context, ConsumerInfo info) throws Exception {
|
public Subscription addConsumer(ConnectionContext context, ConsumerInfo info) throws Exception {
|
||||||
|
log.debug("Adding consumer: "+info.getConsumerId());
|
||||||
|
|
||||||
Subscription sub = createSubscription(context, info);
|
Subscription sub = createSubscription(context, info);
|
||||||
|
|
||||||
|
@ -197,6 +198,8 @@ abstract public class AbstractRegion implements Region {
|
||||||
|
|
||||||
public void removeConsumer(ConnectionContext context, ConsumerInfo info) throws Exception {
|
public void removeConsumer(ConnectionContext context, ConsumerInfo info) throws Exception {
|
||||||
|
|
||||||
|
log.debug("Removing consumer: "+info.getConsumerId());
|
||||||
|
|
||||||
Subscription sub = (Subscription) subscriptions.remove(info.getConsumerId());
|
Subscription sub = (Subscription) subscriptions.remove(info.getConsumerId());
|
||||||
if( sub==null )
|
if( sub==null )
|
||||||
throw new IllegalArgumentException("The subscription does not exist: "+info.getConsumerId());
|
throw new IllegalArgumentException("The subscription does not exist: "+info.getConsumerId());
|
||||||
|
|
Loading…
Reference in New Issue