On 15 Nov 2009, at 19:46, hackingbear wrote:
Hi,
I have BrokerFilter that tries to set message property filter in the
broker
filter (so to prevent malice clients from setting bad property.)
However, I
tried to set the properties in the send(), preProcessDispatch(),
messageDelivered() methods, but none of the properties are passed to
the
consumer side. I prints out the value before I called super.send(),
I can
see the values are set; but on the consumer side, they are still
missing.
I could just have the sender set the properties and I check the
values and
reject those incorrect ones, but as there are many codes that create
and
sends out messages, it is hard to guarantee all of them are stamped
by the
sender.
What's correct way to force a property into the message from the
broker
filter?
Thanks!
--
View this message in context:
http://old.nabble.com/How-to-set-message-property-in-broker-filter-tp26362561p26362561.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
In the send() method - how are you trying to set the properties ? -
are you calling message.getMessage().setProperty() ?
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/