We see on a particular queue where messages are coming from SAP, the get call is skipping messages sometimes.
In one of the scenarios, the first message was skipped and it picked all the messages arrived in the queue later.
We are suspecting, maybe this one is uncommitted message or committed later and the Browse cursor moved ahead based on the sequence.
It is not even re-scanning to see if any message is stuck.
Please suggest if you have any thoughts on this? How can we know if the skipped message is actually uncommitted message and committed later.
Is there any command to see the details..
How to mitigate such scenario?
queueManagerIn = new MQQueueManager(MQManagerName, connectionProperties);
queueIn = queueManagerIn.AccessQueue(MQQueueNameIn, MQC.MQOO_BROWSE + MQC.MQOO_INPUT_SHARED + MQC.MQOO_FAIL_IF_QUIESCING + MQC.MQOO_INQUIRE);
MQGetMessageOptions MQMessageOptions = new MQGetMessageOptions();
// Wait time in milli seconds. Will how often it goes through the whole loop again
// and how long the shutdown has to wait for this function to exit.
MQMessageOptions.WaitInterval = getWaitInterval;
MQMessageOptions.Options = MQC.MQGMO_BROWSE_NEXT + MQC.MQGMO_WAIT + MQC.MQGMO_FAIL_IF_QUIESCING;
MQMessage queueMessage = new MQMessage();
queueIn.Get(queueMessage, MQMessageOptions);