Skip to content
Advertisement

Browse, read, and remove a message from a queue using IBM MQ classes

I’m writing a simple Java application using MQ classes for Java with Eclipse.

Right now I’m able to browse a remote queue without removing the messages stored.
Here is the code of the reading cycle:

JavaScript

Main question: After the read message line and before moving the cursor to the next message how can I remove the message from the queue?

Secondary question: Eclispe is warning me that all the costants used for the options are deprecated; which are the correct ones to use?


Solution:

Here the solution I’m really looking for:

JavaScript

these lines have to be inserted in the question code

I’ve found it here: http://www.velocityreviews.com/forums/t124676-mq-series-messages-browse-and-delete.html

Advertisement

Answer

Solution:

Here the solution I’m really looking for:

JavaScript

these lines have to be inserted in the question code

I’ve found it here: http://www.velocityreviews.com/forums/t124676-mq-series-messages-browse-and-delete.html

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement