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

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1185129 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2011-10-17 12:44:55 +00:00
parent 75e6f1981d
commit 6c4bcb3197
2 changed files with 4 additions and 2 deletions

View File

@ -223,7 +223,8 @@ public class ActiveMQMessageConsumer implements MessageAvailableConsumer, StatsC
// Allows the options on the destination to configure the consumerInfo // Allows the options on the destination to configure the consumerInfo
if (dest.getOptions() != null) { 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); IntrospectionSupport.setProperties(this.info, options);
if (options.size() > 0) { if (options.size() > 0) {
String msg = "There are " + options.size() String msg = "There are " + options.size()

View File

@ -87,7 +87,8 @@ public class ActiveMQMessageProducer extends ActiveMQMessageProducerSupport impl
this.info.setWindowSize(session.connection.getProducerWindowSize()); this.info.setWindowSize(session.connection.getProducerWindowSize());
// Allows the options on the destination to configure the producerInfo // Allows the options on the destination to configure the producerInfo
if (destination != null && destination.getOptions() != null) { 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); IntrospectionSupport.setProperties(this.info, options);
if (options.size() > 0) { if (options.size() > 0) {
String msg = "There are " + options.size() String msg = "There are " + options.size()