What does a negative MessageCount indicste, I have Hornetq running in JBoss 5.1GA, I connect with multple producers and consumers to a JMS queue, I pause the consumers with a control loop that sleeps for 500ms. The producers sends 100 messages, the MessageCount =1000, resume the consumer by exiting the loop. I end up with over 5000 messeges delevered and a MessageCount of ~3000 messages. What is going on, should i have one Session for each consumer? One session for all consumers? What is a good strategy to get only one delevery for each message after pausing delivery and allowing messages to back up in the queue?
can you post a simple test case / program that demonstrates the issue?