Posted: Sat Jul 16, 2005 7:31 pm Post subject: Clear message from queue by date/time
Newbie
Joined: 16 Jul 2005 Posts: 1
Hi all
I am new to MQSeries, seeking for some hints/sample codes for clearing message from local queue by date. Appreciate if someone can help on this issue, thanks.
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
If you want messages older and a certain date/time to be removed from the queue, then the best way to go is to use the "Expiry" field in the message descriptor. You would have to modify the applications that generate the messages to set this field to a value that indcates how log the messages are to live before the queue manager automatically deletes them.
If you can't change the application(s) that create the mesages, then you have to write a program that browses the queue, examines each message's PutDate PutTime message descriptor field and then issues a dstructuve get. ...
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum