Search code examples
javawebsphereibm-mq

Is it possible to remove a message from the MQ Queue without retriving it or clearing the queue?


I need to clear a group of messages from a MQ Queue, but I need to do this without retriving the message or clearing the whole queue?


Solution

  • No, you can't remove/clear a message from a queue without retrieving it. A QueueBrowser is used to browse messages from a queue. It does not remove/clear messages from a queue.