You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Chinna <sr...@gmail.com> on 2017/12/19 09:29:30 UTC

How to find all producers and consumers irrespective of the status

Hi,

I am new to activemq, i want to know all the producers and consumers
irrespective of the status(active and inactive) which are communicate with
the particular broker. is there any way to find out in activemq ?

Thanks in advance.




--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: How to find all producers and consumers irrespective of the status

Posted by Tim Bain <tb...@alumni.duke.edu>.
What's available via JMX is what there is, but depending on exactly what
you want, it may or may not be what you're looking for.

It will include connected consumers, but not disconnected ones, though if
you have any durable topic consumers that are offline, you can get info
about the subscription itself. It will include connected non-anonymous
producers, but not anonymous ones since (if I remember correctly) they
connect and disconnect for each message, and not disconnected producers.

If that's not good enough, you can write a custom plugin that intercepts
the method calls when connections are added and removed, to keep track of
them in a custom data structure you create. See
http://activemq.apache.org/interceptors.html for more information on
interceptors.

Tim

On Dec 19, 2017 2:29 AM, "Chinna" <sr...@gmail.com> wrote:

> Hi,
>
> I am new to activemq, i want to know all the producers and consumers
> irrespective of the status(active and inactive) which are communicate with
> the particular broker. is there any way to find out in activemq ?
>
> Thanks in advance.
>
>
>
>
> --
> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-
> f2341805.html
>