activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1185129 - in /activemq/trunk/activemq-core/src/main/java/org/apache/activemq: ActiveMQMessageConsumer.java ActiveMQMessageProducer.java
Date Mon, 17 Oct 2011 12:44:55 GMT
Author: tabish
Date: Mon Oct 17 12:44:55 2011
New Revision: 1185129

URL: http://svn.apache.org/viewvc?rev=1185129&view=rev
Log:
https://issues.apache.org/jira/browse/AMQ-3500

Don't remove the options, just get them each time.

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQMessageConsumer.java
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQMessageProducer.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQMessageConsumer.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQMessageConsumer.java?rev=1185129&r1=1185128&r2=1185129&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQMessageConsumer.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQMessageConsumer.java
Mon Oct 17 12:44:55 2011
@@ -223,7 +223,8 @@ public class ActiveMQMessageConsumer imp
 
         // Allows the options on the destination to configure the consumerInfo
         if (dest.getOptions() != null) {
-            Map<String, Object> options = IntrospectionSupport.extractProperties(dest.getOptions(),
"consumer.");
+            Map<String, Object> options = IntrospectionSupport.extractProperties(
+                new HashMap<String, Object>(dest.getOptions()), "consumer.");
             IntrospectionSupport.setProperties(this.info, options);
             if (options.size() > 0) {
                 String msg = "There are " + options.size()

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQMessageProducer.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQMessageProducer.java?rev=1185129&r1=1185128&r2=1185129&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQMessageProducer.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQMessageProducer.java
Mon Oct 17 12:44:55 2011
@@ -87,7 +87,8 @@ public class ActiveMQMessageProducer ext
         this.info.setWindowSize(session.connection.getProducerWindowSize());
         // Allows the options on the destination to configure the producerInfo
         if (destination != null && destination.getOptions() != null) {
-            Map<String, Object> options = IntrospectionSupport.extractProperties(destination.getOptions(),
"producer.");
+            Map<String, Object> options = IntrospectionSupport.extractProperties(
+                new HashMap<String, Object>(destination.getOptions()), "producer.");
             IntrospectionSupport.setProperties(this.info, options);
             if (options.size() > 0) {
                 String msg = "There are " + options.size()



Mime
View raw message