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()


Reply via email to