mirror of https://github.com/apache/activemq.git
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:
parent
75e6f1981d
commit
6c4bcb3197
|
@ -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()
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue