ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Clear message from queue by date/time

Post new topic  Reply to topic
 Clear message from queue by date/time « View previous topic :: View next topic » 
Author Message
pennyliverpool
PostPosted: Sat Jul 16, 2005 7:31 pm    Post subject: Clear message from queue by date/time Reply with quote

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.

Penny
Back to top
View user's profile Send private message
wschutz
PostPosted: Sun Jul 17, 2005 7:03 am    Post subject: Reply with quote

Jedi Knight

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 could probably hack the mqbrowse.java sample to do what you want:
http://www.developer.ibm.com/isv/tech/sampmq.html
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Clear message from queue by date/time
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.