Hello Experts,
How can I alleviate problems, caused by, repeated sending of duplicate messages from IBM MQ ?.
Kindly assist here.
Thanks in advance.
Updated May 18, 2018
Hello Experts,
How can I alleviate problems, caused by, repeated sending of duplicate messages from IBM MQ ?.
Kindly assist here.
Thanks in advance.
Comments
This problem has been so far noticed with MQ versions 5.x and 6.x respectively. The following paragraph describes how to deal with such problematic messages. The main symptom noticed in such a case is, the JMS Sender adapter repeatedly ignores the incoming duplicate jms messages with the warning: "Duplicate JMS message already received and processed with XI message ID ; message will be ignored and discarded from the JMS queue"
To avoid continuous retries from MQ (to resend the duplicate message), configure a BackoutQueue and a BackoutThreshold for the affected MQ queue/queues. By setting the above parameters, one can restrict the number of retries(BackoutThreshold) and ensure that the problematic message is then moved on to the BackoutQueue(when the no of retries reaches the BackoutThreshold). The following MQSC command can be used for this purpose:
"ALTER QLOCAL(your.queue.name) BOTHRESH(threshold)
BOQUEUE(your.requeue.queue.name)"