How do I manage a queue to view and delete specific messages?
Write a program that uses a QueueBrowser. Then delete specific messages by using a selector with the message identifier as in the following example:String selector = “JMSMessageID = ‘” + message.getMessageID() + “‘”; Keep in mind that the queue browser is a not a “live” view of the queue. It is a snap-shot.
A. Write a program that uses a QueueBrowser. Then delete specific messages by using a QueueReceiver with a selector with the message identifier, as shown in the following example:String selector = “JMSMessageID = ‘” + message.getMessageID() + “‘”; Keep in mind that the queue browser is a not a “live” view of the queue. It is a snap-shot.