activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r669511 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractTempRegion.java
Date Thu, 19 Jun 2008 15:35:56 GMT
Author: rajdavies
Date: Thu Jun 19 08:35:56 2008
New Revision: 669511

URL: http://svn.apache.org/viewvc?rev=669511&view=rev
Log:
apply fix for https://issues.apache.org/activemq/browse/AMQ-1810

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

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractTempRegion.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractTempRegion.java?rev=669511&r1=669510&r2=669511&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractTempRegion.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractTempRegion.java
Thu Jun 19 08:35:56 2008
@@ -99,6 +99,13 @@
         if (this.doCacheTempDestinations) {
             cachedDestinations.put(new CachedDestination(dest
                     .getActiveMQDestination()), dest);
+        }else {
+            try {
+                dest.dispose(context);
+                dest.stop();
+            } catch (Exception e) {
+                LOG.warn("Failed to dispose of " + dest, e);
+            }
         }
     }
 



Mime
View raw message