How to clean HornetQ messaging journal before/after performing a test?
问题 There's an Arquillian integration test using JMS HornetQ with persisted messages. Some test leave the messaging journal filled with unhandled messages that break other tests expecting no data. Is there a way of telling JMS to clean its messaging journal before or after executing a test? 回答1: This does not exist in the JMS API itself, but there's a method 'removeMessages(filter)' in the HornetQ QueueControl management object. This method can be found in the JMX Bean for the Queue, but I wouldn