Re: How to determine originator of message at the receiver?

2012-08-14 Thread Raul Kripalani
Yes, sure! Just substitute the word "header" for "property" and you're good to go ;) *Raúl Kripalani* *Principal Consultant | FuseSource Corp. r...@fusesource.com | fusesource.com skype: raul.fuse | twitter: @raulvk , @fusenews

Re: How to determine originator of message at the receiver?

2012-08-14 Thread Paddy Carman
Thanks. Can the client use a user-defined header which can identify the client uniquely (for example, the username that was used to connect)? Will this header be passed on to the receiver by the broker? -PC On Tue, Aug 14, 2012 at 10:50 AM, Raul Kripalani wrote: > Yes, but it requires using the A

Re: How to determine originator of message at the receiver?

2012-08-14 Thread Raul Kripalani
Yes, but it requires using the ActiveMQ JMS implementation classes rather than the pure JMS interfaces. If you cast the javax.jms.Message to an org.apache.activemq.command.ActiveMQMessage, you can use the getProducerId() method to obtain the ProducerId. What I'm not sure is how useful that will be

How to determine originator of message at the receiver?

2012-08-14 Thread Paddy Carman
Hi - Is it possible to determine (at the receiver), the client that originated the message that was sent to a queue or a topic? Would this require adding custom header fields? Has there been some work in this direction that someone can point me to? Basically I'm looking for something like a "fr