> But IMHO it is misleading behavior..right?

I don't think it's misleading.


> As publisher I would like to get count of no of messages sent to an address.

We don't currently track the total number of messages sent to an address.  The 
message count is just the number of message currently residing in the queues 
bound to the address.


> Publisher won't worry about how many queues or diverts are associated to an 
> address.

I suppose that depends on the publisher.


> Right now if queues are not associated with an address, there is no way to 
> directly get a message count.

I don't believe there actually is a way for a queue to not be associated with 
an address.  In other words, a queue is always associated with an address.  
When you configure a divert you configure the "forwarding-address" where the 
messages are sent which in turn will send those messages to the queues 
associated with that address according to the configured semantics (i.e. 
anycast or multicast).  You can check the message count of this address if you 
like.  You can also check the message count for any queue as well.

----- Original Message -----
From: "abhijith" <topcoderabhij...@gmail.com>
To: users@activemq.apache.org
Sent: Wednesday, June 7, 2017 9:04:01 AM
Subject: Re: Artemis Address Message Count

Thanks Justin.  But IMHO it is misleading behavior..right?  As publisher I
would like to get count of no of messages sent to an address.  Publisher
won't worry about how many queues or diverts are associated to an address. 

Right now if queues are not associated with an address, there is no way to
directly get a message count.



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Artemis-Address-Message-Count-tp4727127p4727159.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to