|  | 
 
  
    | RSS Feed - WebSphere MQ Support | RSS Feed - Message Broker Support |  
 
  
	|    |  |  
  
	| Expiry of COA messages | « View previous topic :: View next topic » |  
  	| 
		
		
		  | Author | Message |  
		  | gdt | 
			  
				|  Posted: Mon Nov 24, 2008 7:36 am    Post subject: Expiry of COA messages |   |  |  
		  | Newbie
 
 
 Joined: 24 Nov 2008Posts: 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 |  |  
		  |  |  
		  | fjb_saper | 
			  
				|  Posted: Mon Nov 24, 2008 3:52 pm    Post subject: Re: Expiry of COA messages |   |  |  
		  |  Grand High Poobah
 
 
 Joined: 18 Nov 2003Posts: 20767
 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 |  |  
		  |  |  
		  |  |  |  
  
	|    |  | Page 1 of 1 |  
 
 
  
  	| 
		
		  | 
 
 | 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
 
 |  |  |  |