The pause() method on a Topic's JMX Bean doesn't pause consumption
Issue
For each JMS destinations, there is a JMX Bean at the following address: org.hornetq:module=Core,type=Queue,...
With a JMS Queue, calling the pause() method on this bean actually stops the message consumption and stores the messages.
In my tests, I find that calling this method on a bean that represents a Topic has no effect. New messages are still sent to the consumers.
I would expect the pause() method to work exactly as it does with a Queue .i.e stop the consumption of messages when it is called, whether there are registered consumers or not. When the resume() method is called, then the messages are made available for consumption.
From the point of view of a consumer, a paused topic should behave as if no messages were coming in, and once the resume() method is called, the consumer should receive all the messages as if they had just been posted to the Topic.
Environment
Red Hat JBoss Enterprise Application Platform (EAP) 5.2.0
- HornetQ
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
