General J2EE: JMS Question
Hi there Is there any programmatic way of clearing a queue/topic other than the JMS implementation admin user interface? Maybe using JMX? I am currently using Spring's JMS support to create message senders and message receievers. Any help would be much appreciated.
Typically JMX is the typical way to clear queues (unless you create a consumer and pull all the messages out via a receive(). e.g. with Apache ActiveMQ you can use the purge() method on the Queue MBean. James LogicBlaze Fuse: Open Source SOA