Re: How to set message property in broker filter

2010-01-16 Thread hackingbear
Posting the online URL of itself should help: http://old.nabble.com/How-to-set-message-property-in-broker-filter-to26362561.html Thanks a lot!! rajdavies wrote: > > sry hackingbear - I can't remember the original context of this > conversation - a little help pls! :) > > cheers, > > Rob >

Re: How to set message property in broker filter

2010-01-16 Thread Rob Davies
sry hackingbear - I can't remember the original context of this conversation - a little help pls! :) cheers, Rob On 17 Jan 2010, at 00:52, hackingbear wrote: OK, got back to this. I tried and it still does not work. Here is how the codes for timestamping the message at the filter looks

Re: How to set message property in broker filter

2010-01-16 Thread hackingbear
OK, got back to this. I tried and it still does not work. Here is how the codes for timestamping the message at the filter looks like public void send(ProducerBrokerExchange producerExchange, Message msg) throws Exception { ActiveMQMessage amqmsg = (ActiveMQMessage)msg; Objec

Re: How to set message property in broker filter

2009-11-16 Thread Rob Davies
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://acti

Re: How to set message property in broker filter

2009-11-16 Thread hackingbear
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 y

Re: How to set message property in broker filter

2009-11-15 Thread Rob Davies
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() met