It's my mistake:
It looks like everything is working fine but it is strange what kind of information are on
ActiveMQ web application.
Message DeqQeueed will be only incremented if the subscriber is Non-Durable.
If the subscriber is Durable it will not be incrementing DeqQeueed information.
If there are two subscribers on same topic:
When non-Durable reads message it will increment DeqQeueed information but!!!
messsage is still in the Topic waiting for Durable to read it.
What kind of mechanism do I have to see how many messages is in the Topic,
there is no such thing as NumberOfPending messages?
As well how to distinguish on which durable consumer is it waiting on?
The subscription view (subscribers.jsp), gives you individual pending counts on activem and inactive durable subscriptions.
Have a peek at your broker with jconsole to see the full complement of JMX mbeans and attributes.
Most (but not all) are also visible via the web console
I haven't notice column Pending Queue Size on every subscriber
What about Dead Letter queue?
DeadLetter is not special in any way... it is just a normal queue with a well defined name. So destinationView and subscriptionViews work as normal.