From 900f6e9de1f7f075bd842d2a1ef6485b4467ac32 Mon Sep 17 00:00:00 2001 From: James Strachan Date: Mon, 6 Mar 2006 15:33:43 +0000 Subject: [PATCH] added better exception message git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@383565 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/activemq/broker/region/TopicRegion.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/region/TopicRegion.java b/activemq-core/src/main/java/org/apache/activemq/broker/region/TopicRegion.java index 3eddf82855..d9255f2726 100755 --- a/activemq-core/src/main/java/org/apache/activemq/broker/region/TopicRegion.java +++ b/activemq-core/src/main/java/org/apache/activemq/broker/region/TopicRegion.java @@ -66,12 +66,14 @@ public class TopicRegion extends AbstractRegion { 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??