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 » Expiry of COA messages

Post new topic  Reply to topic
 Expiry of COA messages « View previous topic :: View next topic » 
Author Message
gdt
PostPosted: Mon Nov 24, 2008 7:36 am    Post subject: Expiry of COA messages Reply with quote

Newbie

Joined: 24 Nov 2008
Posts: 6

I'm using COA, but I only need to keep these confirmation messages for 14 days. For normal messages, I can set the expiry time - but I can't see a way to do it for COA messages.

As far as I can see, all I can do is write a regular housekeeping task to browse every message on the queue receiving the COA messages and delete those over 14 days old.

I did wonder if I could improve the performance of this task by getting it to simply read those messages without an expiry time, replacing it with the same message but with an appropriate expiry time set (thus only browsing those messages put since the last time it was ran, rather than every one for the last 14 days). However, I couldn't see a way of browsing only those messages without an expiry time.

Have I missed something (probably, as I am new to MQ), or am I limited to simply browsing the whole queue and deleting old messages?

Thanks,

Greg
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Nov 24, 2008 3:52 pm    Post subject: Re: Expiry of COA messages Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

gdt wrote:
I'm using COA, but I only need to keep these confirmation messages for 14 days. For normal messages, I can set the expiry time - but I can't see a way to do it for COA messages.

As far as I can see, all I can do is write a regular housekeeping task to browse every message on the queue receiving the COA messages and delete those over 14 days old.

I did wonder if I could improve the performance of this task by getting it to simply read those messages without an expiry time, replacing it with the same message but with an appropriate expiry time set (thus only browsing those messages put since the last time it was ran, rather than every one for the last 14 days). However, I couldn't see a way of browsing only those messages without an expiry time.

Have I missed something (probably, as I am new to MQ), or am I limited to simply browsing the whole queue and deleting old messages?

Thanks,

Greg

Make the queue FIFO and consume the messages over 14 days old.
Exit on first message more recent than threshold.
Anything behind should then be more recent.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Expiry of COA messages
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.