activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raul Kripalani <>
Subject Re: How to determine originator of message at the receiver?
Date Tue, 14 Aug 2012 17:50:37 GMT
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
you can use the getProducerId() method to obtain the ProducerId. What I'm
not sure is how useful that will be, because AFAIK it is generated at
random. But maybe the ID embeds the hostname or something.

You can also try ProducerId.getConnectionId() to see if you get something

Hope that helps,

*Raúl Kripalani*
*Principal Consultant | FuseSource Corp. | <>
skype: raul.fuse | twitter: @raulvk <>,
blog: F3 - Flashes From the
 | aboutme:


On 14 August 2012 17:44, Paddy Carman <> wrote:

> 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 "from" field in XMPP.
> Appreciate the help!
> Thanks,
> PC

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message