|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
What is the best way to do retry in WMB? |
« View previous topic :: View next topic » |
Author |
Message
|
Frik |
Posted: Mon Sep 24, 2012 3:00 am Post subject: What is the best way to do retry in WMB? |
|
|
Acolyte
Joined: 25 Nov 2009 Posts: 69
|
Hey,
I have to make some retries in my flow.
when there are over then 5 retries, there will be 'throw' statment, and the first failute handler wil write it to log.
Now I'm do it with TryCatch, when the catch is connectes to the in terminal of the try (and there is a pause of 3 seconds betwwen each).
I'm not sure this is the best way.
It looks something like this:
1. MQInput (out)-> 2. Try (out)-> 3. MQOutput -> 4. Compute (throw if fail)
2. Try (catch)-> 5. Flow thay check times and pause -> 2. Try(in)
1. MQinput (failute) -> FailureHandler.
I hope it's clear...
Can you help? how to do it propely? is there a best practice? |
|
Back to top |
|
 |
lancelotlinc |
Posted: Mon Sep 24, 2012 5:11 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
You may prefer to manage retries via WMQ. Use the retry counter on the MQMD. You can also set 24 bytes of metadata in the Appl section of the MQMD. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
Esa |
Posted: Mon Sep 24, 2012 6:47 am Post subject: |
|
|
 Grand Master
Joined: 22 May 2008 Posts: 1387 Location: Finland
|
lancelotlinc wrote: |
You may prefer to manage retries via WMQ. Use the retry counter on the MQMD. You can also set 24 bytes of metadata in the Appl section of the MQMD. |
You mean that if you set ApplIdentityData and back out the message, the metadata is still there when you re-read the backed-out message? That was news to me. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Mon Sep 24, 2012 7:03 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Esa wrote: |
lancelotlinc wrote: |
You may prefer to manage retries via WMQ. Use the retry counter on the MQMD. You can also set 24 bytes of metadata in the Appl section of the MQMD. |
You mean that if you set ApplIdentityData and back out the message, the metadata is still there when you re-read the backed-out message? That was news to me. |
No, if you intend to store metadata in the MQMD, then you must manually put the message to the queue. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
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
|
|
|
|