activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r383565 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/TopicRegion.java
Date Mon, 06 Mar 2006 15:33:45 GMT
Author: jstrachan
Date: Mon Mar  6 07:33:43 2006
New Revision: 383565

URL: http://svn.apache.org/viewcvs?rev=383565&view=rev
Log:
added better exception message

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

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/TopicRegion.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/TopicRegion.java?rev=383565&r1=383564&r2=383565&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/TopicRegion.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/TopicRegion.java
Mon Mar  6 07:33:43 2006
@@ -66,12 +66,14 @@
                 lookup(context, destination);
             }
 
-            SubscriptionKey key = new SubscriptionKey(context.getClientId(), info.getSubcriptionName());
+            String clientId = context.getClientId();
+            String subcriptionName = info.getSubcriptionName();
+            SubscriptionKey key = new SubscriptionKey(clientId, subcriptionName);
             DurableTopicSubscription sub = (DurableTopicSubscription) durableSubscriptions.get(key);
             if (sub != null) {
 
                 if (sub.isActive()) {
-                    throw new JMSException("Durable consumer is in use");
+                    throw new JMSException("Durable consumer is in use for client: " + clientId
+ " and subscriptionName: " + subcriptionName);
                 }
 
                 // Has the selector changed??



Mime
View raw message