activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r686217 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/Topic.java
Date Fri, 15 Aug 2008 14:06:22 GMT
Author: chirino
Date: Fri Aug 15 07:06:21 2008
New Revision: 686217

URL: http://svn.apache.org/viewvc?rev=686217&view=rev
Log:
Fixing a Usage leak in broker when subscribing to a topic using selector: AMQ-1889

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

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/Topic.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/Topic.java?rev=686217&r1=686216&r2=686217&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/Topic.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/Topic.java
Fri Aug 15 07:06:21 2008
@@ -570,13 +570,15 @@
                     return;
                 }
             }
+            
             MessageEvaluationContext msgContext = context.getMessageEvaluationContext();
             msgContext.setDestination(destination);
             msgContext.setMessageReference(message);
-
             if (!dispatchPolicy.dispatch(message, msgContext, consumers)) {
                 onMessageWithNoConsumers(context, message);
             }
+            msgContext.clear();
+            
         } finally {
             dispatchValve.decrement();
         }



Mime
View raw message