Hi Mahesh, thanks for the question. MQ uses a feature called browse-with-mark to first of all browse the new messages that need delivering to subscribers, then mark them while they are delivered. After a period of time any messages that have not been acknowledged by the subscriber are unmarked and available to deliver to other subscribers.
Messages are unmarked based on a queue-manager wide configuration attribute, MARKINT. By default the value of MARKINT is 5000 milliseconds, or 5 seconds.
If MQ Light or AMQP subscribers are likely to take longer than 5 seconds to acknowledge a message, you can modify the MARKINT attribute of the queue manager, e.g. in runmqsc:
ALTER QMGR MARKINT(10000)
Bear in mind that because the value is queue-manager wide, any other MQ applications you have that browse queues will be affected by it. If you haven't got any queue browsing applications then this shouldn't be an issue.
Hope that helps. Matt
------------------------------
Matthew Whitehead
------------------------------