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 » General IBM MQ Support » Flush unwanted messages from queues.

Post new topic  Reply to topic
 Flush unwanted messages from queues. « View previous topic :: View next topic » 
Author Message
patrick flaherty
PostPosted: Wed May 10, 2006 12:09 pm    Post subject: Flush unwanted messages from queues. Reply with quote

Novice

Joined: 27 Mar 2006
Posts: 14
Location: SF E Bay

Hi,

I have a new system I'm deploying. Relying (in the middle) on an MQ Q mgr containing two queues. One in; transfer (programmatically) to the second; and then a listener is sitting on a different platform listening to the second queue and pulls the message down right away.

The reason for the move between the two queues is to transform (again, programmatically of course) the message.

Problem. Messages get 'orphaned'. Left (sometimes long periods of time) on one-or-the-other of the queues. Then when someone runs the system, these orphaned messages get flushed and produce unexpected and unwanted results.

Need some way of either

    1. Setting both queues so that any message that sits there for more than, say, 1 minute gets automatically deleted.
    2. A (hopefully small) program that does the same as a above.


Obviously #1 would be my choice since it would be easier (I would assume that it's setting some property or whatever on the queues).

thanx.

pat
Back to top
View user's profile Send private message
sandiksk
PostPosted: Wed May 10, 2006 12:15 pm    Post subject: Reply with quote

Centurion

Joined: 08 Jun 2005
Posts: 133

It might be an issue with the Queue Trigger being set to FIRST or EVERY search this forum for more info on these.
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Wed May 10, 2006 12:37 pm    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

Quote:
1. Setting both queues so that any message that sits there for more than, say, 1 minute gets automatically deleted.


You may find a searh on "Expiry" or "Expiration" rewarding
Back to top
View user's profile Send private message
patrick flaherty
PostPosted: Thu May 11, 2006 9:35 am    Post subject: Reply with quote

Novice

Joined: 27 Mar 2006
Posts: 14
Location: SF E Bay

Got it working - thanx.

'Expiry' is the word that did the trick for me.

pat
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Flush unwanted messages from queues.
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.