|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Could you please review my design |
« View previous topic :: View next topic » |
Author |
Message
|
ethirajesh |
Posted: Thu Jul 21, 2011 9:48 pm Post subject: Could you please review my design |
|
|
Apprentice
Joined: 04 Oct 2010 Posts: 46
|
Hi I need your inputs on the below design where I retry a Webservice for certain number of times.
InputNode-->Compute-->HTTPRequest-->Mapping-->HTTPReply
In the above design I have HTTPInput node in separate flow, which checks the incoming request and route the request to the above mentioned flow(there are 4 such flows which is invoked based on the request coming in).
When Web service is down, I need to retry the request for 3 times. To acheive this, I have wired 'Failure' terminal of HTTPRequest to a Filter node to check the exception type. If the exception is not 'Parser', 'Messageexception' or 'User Exception' or 'The retry count is exceeds 3' I route this to True terminal which is wired to another Compute node (Through False I connect to it to Exception Hadler component). The 'out' of this is wired to the Input terminal of the COmpute node of the above message flow.
My Doubts are :
Note1: I tried saving retry count in MQRH2 header, but when the message is coming out from Failure terminal, this header is getting deleted automatically.
1) Is this is the right approach for retrying a webservice?
2) Since MQRFH2 header is getting deleted, I am gonna use Environment variable to hold the retry count.
3) Will this design makes other messages choked coming in during the Retry?
Note2:
During peak season the number of request will be around 25000.
The incoming request is of query string type and The HTTPRequest hits the webservice using 'GET' Method.
I am sorry for making my query too length.
Thanks
Rajesh Ethiraj |
|
Back to top |
|
 |
smdavies99 |
Posted: Thu Jul 21, 2011 11:14 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Have you looked at the MANY similar questions that have been asked in this forum.
This
"I have to retry <insert operation> n times" comes up at least once every 6 months. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri Jul 22, 2011 4:28 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
smdavies99 |
Posted: Fri Jul 22, 2011 5:47 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Do you get commission every time you post this reference here?  _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
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
|
|
|
|