1 Reply Latest reply on Feb 22, 2008 2:50 PM by timfox

    Determining the number of messages in a topic

    isthisusernameavailable

      Hello,

      What's the best way to determine the number of messages in a topic? I know you can use a QueueBrowser to enumerate the messages in a Queue, but there is no TopicBrowser.

      Thanks.

        • 1. Re: Determining the number of messages in a topic
          timfox

          Well.. topics don't hold on to messages, so it wouldn't make sense to browse them.

          You can create multiple subscriptions on a particular topic, and it might make sense to browse them but JMS doesn't provide any such functionality.

          However with JBM you can use the JMX management interface to see what particular subscriptions contain (see user guide).