How to find a horneq Queue length
问题 I am using Hornetq 2.0 i dont understand how can i know how many message are sitting on the queue at the moment. This is a very useful feature so i can know at runtime if my consumer consume message fast enough. I am not using the JMS api but the highly optimised core API. What is the right (fastest) way to get the number of message in the queue ? I found 2 way but don't know what is the proper way to do it. public int size(){ ClientSession session; try { session = sf.createSession(false,