activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r420775 - /incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/JmsConsumerClient.java
Date Tue, 11 Jul 2006 09:42:17 GMT
Author: aco
Date: Tue Jul 11 02:42:16 2006
New Revision: 420775

URL: http://svn.apache.org/viewvc?rev=420775&view=rev
Log:
Close the consumer before unsubscribing it.

Modified:
    incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/JmsConsumerClient.java

Modified: incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/JmsConsumerClient.java
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/JmsConsumerClient.java?rev=420775&r1=420774&r2=420775&view=diff
==============================================================================
--- incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/JmsConsumerClient.java
(original)
+++ incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/JmsConsumerClient.java
Tue Jul 11 02:42:16 2006
@@ -90,6 +90,7 @@
         } finally {
             if (client.isDurable() && client.isUnsubscribe()) {
                 log.info("Unsubscribing durable subscriber: " + getClientName());
+                getJmsConsumer().close();
                 getSession().unsubscribe(getClientName());
             }
             getConnection().close();
@@ -114,6 +115,7 @@
         } finally {
             if (client.isDurable() && client.isUnsubscribe()) {
                 log.info("Unsubscribing durable subscriber: " + getClientName());
+                getJmsConsumer().close();
                 getSession().unsubscribe(getClientName());
             }
             getConnection().close();
@@ -142,6 +144,7 @@
         } finally {
             if (client.isDurable() && client.isUnsubscribe()) {
                 log.info("Unsubscribing durable subscriber: " + getClientName());
+                getJmsConsumer().close();
                 getSession().unsubscribe(getClientName());
             }
             getConnection().close();
@@ -175,6 +178,7 @@
         } finally {
             if (client.isDurable() && client.isUnsubscribe()) {
                 log.info("Unsubscribing durable subscriber: " + getClientName());
+                getJmsConsumer().close();
                 getSession().unsubscribe(getClientName());
             }
             getConnection().close();



Mime
View raw message