|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Common Exception Handler for All Protocol(MQ,FILE,HTTP,SOAP) |
« View previous topic :: View next topic » |
Author |
Message
|
arunkumar1989 |
Posted: Thu Aug 07, 2014 9:03 pm Post subject: Common Exception Handler for All Protocol(MQ,FILE,HTTP,SOAP) |
|
|
 Voyager
Joined: 21 Nov 2012 Posts: 98 Location: Chennai
|
Hi All,
My Requirement is create common exception handler kind of accelerator, that should support for all protocols like Mq,FILE,HTTP,SOAP,...etc
1) How can i differentiate the exception is coming from which protocol?
Using InputLocalEnvironment we can to do this, my exact question is it supporting for all protocols
2) Is ther any different set of rules i have to follow to capture for multi protocol excetions
Get exception details, form a some structure which is contain all exception details and send it back to main service or client.
Thanks in Advance
Arunkumar _________________ Being in a crowd when you are alone is ignorance. Enlightenment is being alone in a crowd; a feeling of oneness in a crowd. |
|
Back to top |
|
 |
smdavies99 |
Posted: Thu Aug 07, 2014 10:09 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
We do this BUT as you point out it could be difficult to detect the input type.
To solve this we have a subflow (one per type) that the developer puts into the flow BEFORE they do any real work on the message.
This sets the Input message type (and a few other things like to 're-throw' or not) into the Environment. Using the LocalEnvironment relies upon the developer to set the Compute node mode correctly etc. You don't have to do that with the environment.
The common Error Handler will use the message type and extract the relevant data from the ExceptionList.
The development took a bit of time to get right but once done, it saves a lot of time in flow development. It will also be a useful set of code to have in your toolbox. _________________ 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
|
|
|
|