ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Common Exception Handler for All Protocol(MQ,FILE,HTTP,SOAP)

Post new topic  Reply to topic
 Common Exception Handler for All Protocol(MQ,FILE,HTTP,SOAP) « View previous topic :: View next topic » 
Author Message
arunkumar1989
PostPosted: Thu Aug 07, 2014 9:03 pm    Post subject: Common Exception Handler for All Protocol(MQ,FILE,HTTP,SOAP) Reply with quote

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
View user's profile Send private message Send e-mail
smdavies99
PostPosted: Thu Aug 07, 2014 10:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Common Exception Handler for All Protocol(MQ,FILE,HTTP,SOAP)
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.