From e38da226ef41e31d363102c744c351b540098856 Mon Sep 17 00:00:00 2001 From: Robert Davies Date: Thu, 19 Jun 2008 15:35:56 +0000 Subject: [PATCH] apply fix for https://issues.apache.org/activemq/browse/AMQ-1810 git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@669511 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/activemq/broker/region/AbstractTempRegion.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractTempRegion.java b/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractTempRegion.java index 859c86b9c9..de794525d3 100644 --- a/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractTempRegion.java +++ b/activemq-core/src/main/java/org/apache/activemq/broker/region/AbstractTempRegion.java @@ -99,6 +99,13 @@ public abstract class AbstractTempRegion extends AbstractRegion { 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); + } } }