activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r418435 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractRegion.java
Date Sat, 01 Jul 2006 04:20:54 GMT
Author: chirino
Date: Fri Jun 30 21:20:53 2006
New Revision: 418435

URL: http://svn.apache.org/viewvc?rev=418435&view=rev
Log:
added some debug to see when consumers are added and removed.

Modified:
    incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractRegion.java

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractRegion.java
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractRegion.java?rev=418435&r1=418434&r2=418435&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractRegion.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractRegion.java
Fri Jun 30 21:20:53 2006
@@ -141,6 +141,7 @@
     }
 
     public Subscription addConsumer(ConnectionContext context, ConsumerInfo info) throws
Exception {
+        log.debug("Adding consumer: "+info.getConsumerId());
 
         Subscription sub = createSubscription(context, info);
 
@@ -162,7 +163,7 @@
                 }
             }
         }
-        
+                
         subscriptions.put(info.getConsumerId(), sub);
 
         // Add the subscription to all the matching queues.
@@ -196,6 +197,8 @@
     }
     
     public void removeConsumer(ConnectionContext context, ConsumerInfo info) throws Exception
{
+    	
+        log.debug("Removing consumer: "+info.getConsumerId());
         
         Subscription sub = (Subscription) subscriptions.remove(info.getConsumerId());
         if( sub==null )



Mime
View raw message