2 Replies Latest reply on Apr 9, 2010 5:41 AM by timfox

    Retrieving Topic Message Counts

    schwanitzb

      Hi,

       

      I'd like to get the total number of messages that have passed through a non-durable Topic. I have examined the example of message counting for a Queue. It uses the QueueControl.listMessageCounter() method. However, the TopicControl class does not have a similar listMessageCounter() method.

       

      Is there a way to get the count of messages that have passed through a non-durable Topic, or is this feature not yet available?

       

      Thanks,

      Bill

        • 1. Re: Retrieving Topic Message Counts
          clebert.suconic

          Every subscription is a CoreQueue. You would be able to access those properties at each subscription's queue.

          • 2. Re: Retrieving Topic Message Counts
            timfox

            Bill Schwanitz wrote:

             

            Hi,

             

            I'd like to get the total number of messages that have passed through a non-durable Topic. I have examined the example of message counting for a Queue. It uses the QueueControl.listMessageCounter() method. However, the TopicControl class does not have a similar listMessageCounter() method.

             

            Is there a way to get the count of messages that have passed through a non-durable Topic, or is this feature not yet available?

             

            Thanks,

            Bill

            What you're asking is a count of messages routed through a particular address.

             

            This is not available, messages added counts are only available on a per queue basis.