Reputation: 9204
I was wondering if there is a way for you to configure a queue to automatically clear messages? We are striving to partially implement a component of our architecture and want to be able to send to the queue, but have the queue automatically remove the messages that are being sent so that we don't have to run scripts, etc to perform the clean-up.
So far the only thing I have been able to find is to run CLEAR QLOCAL or set the messages to expire from the publishing application.
Upvotes: 4
Views: 6721
Reputation: 10672
For you use case there are a few options in IBM MQ:
CAPEXPRY
feature to administratively force message expiry at the queue level.CLEAR QLOCAL
against the queue. There can not be open handles on the queue for this to work.CLEAR QLOCAL
against the queue. There cannot be open handles on the queue for this to work.dmpmqmsg
utility against the queue to read and discard the messages.Upvotes: 2