How to flush a JMS queue?
Issue
- I want to delete the contents of the JMS queue. The queue contains close to 3.2 million messages. We tried to click the
flushbutton in JMS destinations, but after running for almost three hours the process stopped. When we restarted JBoss EAP server, we found around 20000 messages were deleted. Is there a preferred way to flush the entire Queue, please suggest.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.4
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.
