My software is tested with unit-tests. After each test, some queues are containing testmessages. I would like to delete these messages automatically after each test. Exist a way to do this?
The javax.jms.Destination doesn't have a removeAllMessages method :-(.
There is a JMX method, look for your destination on the console. Or consume all messages in a read loop.