#19 Non-Durable Consumer Message Count

open
Jim Alateras
5
2005-10-04
2005-10-04
Ilan Amar
No

At the moment there is no way of determining the
number of pending messages for a non-durable
subscriber.

It would be helpful to have such capability in the admin
interface.

Discussion

  • Tim Anderson
    Tim Anderson
    2005-10-06

    Logged In: YES
    user_id=557161

    Unlike queues, topics only hold messages for consumers that are
    active. A topic consumer only sees the messages that were
    published on or after the time that the consumer was created.

    It is therefore not possible to determine how many messages are
    pending with having an instance of a TopicSubscriber (or durable
    subscription name).

    To support non-durable subscribers, a method would need to be
    added to JmsAdminServerIfc along the lines of:
    int getMessageCount(MessageConsumer consumer);