activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Davies <rajdav...@gmail.com>
Subject Re: How to set message property in broker filter
Date Mon, 16 Nov 2009 20:07:21 GMT
f you are setting a jms property  - make sure messageSend.getMessage()  
returns a javax.jms.Message and set the property there. It should work
On 16 Nov 2009, at 19:02, hackingbear wrote:

>
> I call the setStringProperty() and setProperty() to the message  
> parameter
> ('messageSend' in
> http://activemq.apache.org/maven/activemq-core/apidocs/org/apache/activemq/broker/BrokerFilter.html#send%28org.apache.activemq.broker.ProducerBrokerExchange,%20org.apache.activemq.command.Message%29)
>
> Are you saying messageSend.getMessage().setProperty() will work?  
> (Though
> getMessage() seems to return an object of type  
> *.activemq.command.Message.)

I
>
>
> rajdavies wrote:
>>
>> In the send() method - how are you trying to set the properties ? -
>> are you calling message.getMessage().setProperty() ?
>>
>
> -- 
> View this message in context: http://old.nabble.com/How-to-set-message-property-in-broker-filter-tp26362561p26377546.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Rob Davies
http://twitter.com/rajdavies
I work here: http://fusesource.com
My Blog: http://rajdavies.blogspot.com/
I'm writing this: http://www.manning.com/snyder/






Mime
View raw message