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 » IBM Integration Bus V9 - Catch Unhandled Exceptions

Post new topic  Reply to topic
 IBM Integration Bus V9 - Catch Unhandled Exceptions « View previous topic :: View next topic » 
Author Message
matws
PostPosted: Tue Apr 14, 2015 10:57 am    Post subject: IBM Integration Bus V9 - Catch Unhandled Exceptions Reply with quote

Newbie

Joined: 14 Apr 2015
Posts: 1

Hi,

I am developing a framework containing a set of features which can (ideally) be apply to any architecture using IIB, with minimum changes to the existing architecture.
One of the requirements is to be able to catch any exceptions that have occurred on any flow, which have not been handled by the developer.
And I would also like to be able to do this without having to force the developer to perform any additional action (add a subflow, user-node, add monitoring events, ...).

In the windows version I am able to see all unhandled exceptions reaching the event viewer, so the events are being handle by the broker somehow.

I was wondering if there was a way to subscribe or intercept the event of an unhandled exception reaching the broker.

Thank you in advance,
Miguel
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue Apr 14, 2015 11:14 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

I don't think that you can do what you want totally externally to the flow. Also does the the entry in the System Event log tell the whole story of the exception? It is usable in a production environment? Do you have access to the System event log on a minute by minute basis?

A good number of sites have a standard framework for all message flows.
These facilities are often enabled as sub-flows that the developers add to their flows.
These can take away responsibility for things like error handling, input and output auditing.

The one I currently use does things such as returning a properly constructed SOAP Fault message (for flows that use SOAP), returning a properly coded HTTP error message etc etc etc

These frameworks take a good deal of time and efffort to develop. Many are specifically tailored to the requirements of the site.

Once you have one then all the developer has to do is to add the subflows to their flow in the right place.

I am sure others will be along soon to add their $0.02 worth to the subject.

Finally,
do you really want every exception to his the system event log? Who is going to read them all? you could write them to a Database so the events are searchable etc etc etc.
Some of the failures in our system hit the Error Handler but do not cause an exception. These are non-fatal or controlled errors. A decent framwork will allow you to control this sort of stuff.

This whole area is quite complex and there is definitely more than one answer to the problem
_________________
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
mqjeff
PostPosted: Tue Apr 14, 2015 11:29 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Note that this is a category 1 supportPac, which means it's not free.

http://www-01.ibm.com/support/docview.wss?rs=171&uid=swg24022791&loc=en_US&cs=utf-8&lang=en
Back to top
View user's profile Send private message
akil
PostPosted: Wed Apr 15, 2015 7:49 pm    Post subject: Reply with quote

Partisan

Joined: 27 May 2014
Posts: 338
Location: Mumbai

I think the only way to catch un-handled exceptions is to attach a node to the catch terminal of the input node of the flow ..

What's usually attached to the catch terminal is a sub-flow, often packaged as a library , that does what-ever is deemed appropriate for the exceptions.

So I suppose the flows will have to be touched..

It might be possible to add these sub-flows via altering the message flow xml files via an ant script, but that kind of thing isn't officially supported..
_________________
Regards
Back to top
View user's profile Send private message Visit poster's website
smdavies99
PostPosted: Wed Apr 15, 2015 10:20 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.

akil wrote:
I think the only way to catch un-handled exceptions is to attach a node to the catch terminal of the input node of the flow ..

What's usually attached to the catch terminal is a sub-flow, often packaged as a library , that does what-ever is deemed appropriate for the exceptions.

So I suppose the flows will have to be touched..

It might be possible to add these sub-flows via altering the message flow xml files via an ant script, but that kind of thing isn't officially supported..

and what happens to all this exceptions that are generated during development?
I have to wonder if the OP is on a search for El Dorado?
_________________
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 » IBM Integration Bus V9 - Catch Unhandled Exceptions
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.