Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I manage a queue to view and delete specific messages?

delete manage Messages Queue view
0
Posted

How do I manage a queue to view and delete specific messages?

0

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.

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123