|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
Retry mechanism pattern for broken connection |
« View previous topic :: View next topic » |
Author |
Message
|
lancelotlinc |
Posted: Thu Apr 04, 2013 6:03 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
andy1989 wrote: |
Quote: |
Try it and find out. Also experiment with how you would modify that value.
|
I've check it and for BOTHRESH=3 period is about 1 second:
Code: |
Date: 2013-04-04 15:50:36.866836
Date: 2013-04-04 15:50:38.131391
Date: 2013-04-04 15:50:39.128313 |
|
So how would you use your error handler to increase the amount of time to wait before retrying? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
andy1989 |
Posted: Thu Apr 04, 2013 6:08 am Post subject: |
|
|
Novice
Joined: 07 Jan 2013 Posts: 22
|
mqjeff wrote: |
lancelotlinc wrote: |
andy1989 wrote: |
how to provide retry mechanism and not overload network. |
From your error handler, backout the original message into the original input queue, incrementing the backout count. When backout count is greater than desired (five times for example), move the message to a backout queue. |
Yes, by all means, hand-code the behavior already provided with the MQInput node.
Or, alternately, consider understanding the product function and how to cause the MQInput node to perform an automatic backout. |
hmm...
I've asked if i can use retry mechanism based on MQInput parameters or mechanism based on solution like in article: http://www.ibm.com/developerworks/websphere/library/techarticles/0601_cox/0601_cox.html
Andy |
|
Back to top |
|
 |
andy1989 |
Posted: Thu Apr 04, 2013 6:11 am Post subject: |
|
|
Novice
Joined: 07 Jan 2013 Posts: 22
|
lancelotlinc wrote: |
andy1989 wrote: |
Quote: |
Try it and find out. Also experiment with how you would modify that value.
|
I've check it and for BOTHRESH=3 period is about 1 second:
Code: |
Date: 2013-04-04 15:50:36.866836
Date: 2013-04-04 15:50:38.131391
Date: 2013-04-04 15:50:39.128313 |
|
So how would you use your error handler to increase the amount of time to wait before retrying? |
I think, I don't need to increase time interval , so if simply usage of embeded MQ parameters is acceptable, I will use that simplest solution.
Andy |
|
Back to top |
|
 |
|
|
|
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
|
|
|
|