0 Replies Latest reply on Apr 5, 2010 6:29 AM by vdurbha

    Message count in a cluster

    vdurbha

      I have a hornetq cluster of 2 nodes. Both of them have a queue called MyQueue. I want to write a program to find out the total message count of all messages in MyQueue in all nodes.

       

      Is there a better way to do this than a brute force method of connecting to each node and getting the count and adding them up? Besides, this method may work fine as I just have 2 nodes right now, but as my cluster grows, this method does not scale.

       

      Is there a way to achieve this when the number of nodes in the cluster can change?