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.
Solution:
Here the solution I'm really looking for:
// set te cursor to remove the message from the queue
gmo.options = CMQC.MQGMO_MSG_UNDER_CURSOR;
queue.get(theMessage, gmo);
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
To delete a message, follow the procedure described in the MQ documentation.
For deprecated constant values, check again the Javadoc, the recommended way is described.
MQC.MQOO_INPUT_SHARED --> CMQC.MQOO_INPUT_SHARED