Only validate the params inside the domain of the producer or consumer.  

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1184834 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2011-10-16 14:28:42 +00:00
parent 9ff350033f
commit 56272fab37
2 changed files with 4 additions and 4 deletions

View File

@ -223,8 +223,8 @@ public class ActiveMQMessageConsumer implements MessageAvailableConsumer, StatsC
// Allows the options on the destination to configure the consumerInfo
if (dest.getOptions() != null) {
Map<String, String> options = new HashMap<String, String>(dest.getOptions());
IntrospectionSupport.setProperties(this.info, options, "consumer.");
Map<String, Object> options = IntrospectionSupport.extractProperties(dest.getOptions(), "producer.");
IntrospectionSupport.setProperties(this.info, options);
if (options.size() > 0) {
String msg = "There are " + options.size()
+ " consumer options that couldn't be set on the consumer."

View File

@ -87,8 +87,8 @@ public class ActiveMQMessageProducer extends ActiveMQMessageProducerSupport impl
this.info.setWindowSize(session.connection.getProducerWindowSize());
// Allows the options on the destination to configure the producerInfo
if (destination != null && destination.getOptions() != null) {
Map<String, String> options = new HashMap<String, String>(destination.getOptions());
IntrospectionSupport.setProperties(this.info, options, "producer.");
Map<String, Object> options = IntrospectionSupport.extractProperties(destination.getOptions(), "producer.");
IntrospectionSupport.setProperties(this.info, options);
if (options.size() > 0) {
String msg = "There are " + options.size()
+ " producer options that couldn't be set on the producer."