activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Reock <Justin.Re...@roguewave.com>
Subject Re: determining the host that consumed/produced a message?
Date Fri, 13 Feb 2015 22:00:45 GMT
Hi Kevin,

For setting a custom ID, use the oft-overlooked ActiveMQConnection /
Connection setClientID() method.  Just be sure to use a unique one per
client, ActiveMQ will reject dupes.  I haven¹t used Advisories for that
before, but, setClientID is really useful for inventory.

Thanks,
Justin

On 2/13/15, 4:50 PM, "Kevin Burton" <burton@spinn3r.com> wrote:

>Using advisories, how do I determine the hostname/ip of the machine that
>consumed a message?
>
>Is it jus the producer ID? Can I set a custom producer ID somehow so that
>it¹s the hostname?
>
>-- 
>
>Founder/CEO Spinn3r.com
>Location: *San Francisco, CA*
>blog: http://burtonator.wordpress.com
>Š or check out my Google+ profile
><https://plus.google.com/102718274791889610666/posts>
><http://spinn3r.com>


Mime
View raw message