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 » Does Handlers will work when database is down?

Post new topic  Reply to topic
 Does Handlers will work when database is down? « View previous topic :: View next topic » 
Author Message
cvag
PostPosted: Tue Sep 28, 2010 3:47 am    Post subject: Does Handlers will work when database is down? Reply with quote

Centurion

Joined: 17 Mar 2008
Posts: 127

I'm trying to access database using an SQL statement. An SQL exception is thrown when DB is down.
I'm trying to handle this exception using Contiue Handlers and proceed further in the flow without throwing an exception.
So Continue Handle didn't worked for this situaiton.?

Is there any way to handle this situation(when DB is down) and continue further with the main flow . Does MB s upports this situation?


Thanks in Advance.
Back to top
View user's profile Send private message
Mandeep
PostPosted: Tue Sep 28, 2010 4:51 am    Post subject: Reply with quote

Apprentice

Joined: 03 May 2004
Posts: 33

There is a property on compute node called 'Throw exception on database error'. You could un-check it and handle the exception in ESQL the way you would like. Continue processing or throw an ESQL User Exception based on what kind of exception is returned by DB
Back to top
View user's profile Send private message
cvag
PostPosted: Tue Sep 28, 2010 1:00 pm    Post subject: Reply with quote

Centurion

Joined: 17 Mar 2008
Posts: 127

Thanks Mandeep,
Yeah i got ur point and i handled database errors explicitly earlier. But my concern is about "when database is down" can we handle and go further processing with the main flow or not using Handlers. Because the debug point is not even entering the node when the database is down.. whereas the other situations like primary constraint , other query statements etc etc.. its fine.

Could you please reply if you get my point.

Thanks.
Back to top
View user's profile Send private message
ajit1981
PostPosted: Tue Sep 28, 2010 10:46 pm    Post subject: Reply with quote

Apprentice

Joined: 09 Apr 2010
Posts: 41
Location: Bangalore, Inida

Put TryCatch node before your compute node, and put one compute node and connect with the Catch terminal, in that compute node you can do your transformation/processing .
Back to top
View user's profile Send private message
cvag
PostPosted: Tue Sep 28, 2010 11:41 pm    Post subject: Reply with quote

Centurion

Joined: 17 Mar 2008
Posts: 127

Thanks Ajit
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 » Does Handlers will work when database is down?
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.