Author |
Message
|
albitkw |
Posted: Fri Aug 05, 2005 11:03 am Post subject: BackoutRequeue Capabilites to Retry a WEB Service Request |
|
|
Novice
Joined: 02 May 2005 Posts: 15 Location: Pittsburgh, PA
|
If a WBIMB message flow has connection problems to a WEB service or external database, I would like to use the WMQ BackoutRequeue capabilities in order to reprocess the message rather than route it to a message failures queue. If reprocessed 30 minutes later, perhaps the connection issue will have been resolved and the message can go through without manual intervention.
Documentation found so far explains queue properties BackoutRequeueQName and BackoutThreshold (max num backouts), as well as message descriptor field MBDOC (num backouts for msg). However, I've found no documentation on how to use the properties or examples on applying these options.
Questions:
1) Does the Backout queue require a message flow or some other user defined script in order to reprocess messages?
2) What determines how long messages remain on the Backout queue before they are reprocessed? Is this controlled by a message flow, or is there a queue manager (or queue) interval property that can be set to retry in 5 seconds, 5 minutes, or 5 hours?  |
|
Back to top |
|
 |
PeterPotkay |
Posted: Fri Aug 05, 2005 11:21 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
The backout queue is just a plain old queue where the message lands. Its up to you to process it in any way you sit fit. There is nothing out of the box that will automatically act on the message after a set amount of time. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
wschutz |
Posted: Fri Aug 05, 2005 11:31 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
So... you could setup a cron job to run every 30 minutes to use something like the "q" program (s/p ma01) to move the messages from the backout queue back to your original input queue....
You'd need to be careful that messages don't travel this loop forever.... _________________ -wayne |
|
Back to top |
|
 |
webspherical |
Posted: Mon Feb 06, 2006 11:42 pm Post subject: |
|
|
Acolyte
Joined: 15 Aug 2005 Posts: 50
|
what the easiest way to test if the Backout thresholdreally works? |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Feb 07, 2006 5:42 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
The Backout processing in WBIMB works. If you can show that it DOESN'T, then you can raise a PMR and get it fixed.
Backout logic is implemented in the default behavior on the MQInput node for the Failure terminal. So in cases where you want backout processing to occure, you have to make sure that the MQInput node's failure terminal is called and that it not connected to anything. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|