I am writing an API to delete messages from Jboss service integration bus. I need to provide methods for deleting individual messages and also all the messages (purge) in the queue.
I tried finding the list of operations available on a queue using JMX. Below is the code I used for getting the list of operations. It has an operation "removeAllMessages" which would delete all the messages in the queue. However, I did not find any operation that would help me delete individual messages from the queue. Also, I found the QueueBrowser API of JMX. But the specification says that the class does not delete messages from the queue.
Please let me know how I can delete individual messages from the queue.
posted 2 years ago
Solved the issue. I wrote a message reciever for the queue with messageId as the selector.