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 » Handler problem.

Post new topic  Reply to topic
 Handler problem. « View previous topic :: View next topic » 
Author Message
sandip_gaikwad
PostPosted: Mon Oct 24, 2011 9:39 pm    Post subject: Handler problem. Reply with quote

Voyager

Joined: 25 Jul 2011
Posts: 95

My flow is database related .i am using handler in my project.So i want to if database connection not available that time flow come to on handler otherwise any insert,update ,delete problem it won't come to on handle it want to terminate that time.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue Oct 25, 2011 4:28 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Did you connect a Trace node to the Failure terminal? If so, what was the output?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
sandip_gaikwad
PostPosted: Wed Nov 02, 2011 3:34 am    Post subject: Reply with quote

Voyager

Joined: 25 Jul 2011
Posts: 95

Here condition is that I used handler in the database note i want to terminate handler when I insert any record that contain null field.
What is code for that using handler?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Nov 02, 2011 4:08 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

I think a lot of us are having some trouble making sense of your statements.

I *think* what you are saying is that you want to write an ESQL DECLARE HANDLER that will only handle a failure condition that indicates that the database connection is not available.

If you have some other kind of error returned from a database, then you want your DECLARE HANDLER to ignore this.

You can specify with the DECLARE HANDLER what kinds of SQLSTATE, SQLCODE, etc., it will capture. So you should be able to determine the specific SQL errors you are looking for - that indicate the connection is not available - and then put those codes in your DECLARE HANDLER statement and Broker will do what you want.
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 » Handler problem.
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.