4 Replies Latest reply on Mar 14, 2013 1:52 PM by Derek Croxton

    Number of concurrent messages in ESB

    Derek Croxton Newbie

      For benchmarking purposes, our client would like to know the maximum number of messages in the ESB at one time.  The MessageCounter and other statistics in JMX don't seem to help with this.  I do log the time that messages enter and leave the ESB, so figuring out how many are in the bus at a given moment would not be difficult, but calculating the maximum seems like it would be difficult.  I had also thought of creating a singleton that could track whenever a message enters and leaves the queue, but I'm afraid that in case of timeouts or other errors, some messages won't leave and the total count will gradually creep up over time.  Any suggestions for how to track this statistic?