|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Flush unwanted messages from queues. |
« View previous topic :: View next topic » |
Author |
Message
|
patrick flaherty |
Posted: Wed May 10, 2006 12:09 pm Post subject: Flush unwanted messages from queues. |
|
|
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 |
|
 |
sandiksk |
Posted: Wed May 10, 2006 12:15 pm Post subject: |
|
|
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 |
|
 |
kevinf2349 |
Posted: Wed May 10, 2006 12:37 pm Post subject: |
|
|
 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 |
|
 |
patrick flaherty |
Posted: Thu May 11, 2006 9:35 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|