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 » Throw exception on database error - Compute Node

Post new topic  Reply to topic
 Throw exception on database error - Compute Node « View previous topic :: View next topic » 
Author Message
nukalas2010
PostPosted: Sun Oct 20, 2013 2:35 am    Post subject: Throw exception on database error - Compute Node Reply with quote

Master

Joined: 04 Oct 2010
Posts: 220
Location: Somewhere in the World....

Dears,
In one of the case, we are calling Oracle DB to fetch the records from the table. Some times due to refresh kind of stuff, the Database wont be available. That time the connectivity wont be there so, we are handling this error using exception handling. This is fine up to here.

This is just a part of one flow and we don't want to throw error beacuse of this. So we just unchecked the Option in Compute Node "
Throw exception on database error". So, for testing purpose we just changed the Database Name to wrong database in odbc.ini file.

Checked the connectivity with mqsicvp command, and getting error because of this wrong database.

And the same is reflecting in the flow also, even we disabled the option. Is there anything I am missing here to do. Please correct me If I am wrong..
What is the exact use of this property.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Sun Oct 20, 2013 2:52 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.

Did you try using a continue handler?

This post might help a bit?

http://www.mqseries.net/phpBB2/viewtopic.php?p=327611&sid=a394db86e3a704cfcd29ccc5ad4dfc7c
_________________
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
nukalas2010
PostPosted: Sun Oct 20, 2013 3:26 am    Post subject: Reply with quote

Master

Joined: 04 Oct 2010
Posts: 220
Location: Somewhere in the World....

thanks davies..!!
But here the problem is, we can't able to enter this compute node (DSN configured) because of no connectivity due to wrong database. We disabled this option "Throw exception on database error ", but no Idea why its throwing error. Please correct me If my understanding is wrong..
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Oct 20, 2013 9:32 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

nukalas2010 wrote:
thanks davies..!!
But here the problem is, we can't able to enter this compute node (DSN configured) because of no connectivity due to wrong database. We disabled this option "Throw exception on database error ", but no Idea why its throwing error. Please correct me If my understanding is wrong..


Did you reed smdavies99's post? I would infer from that that the option is only changing the way the handler behaves...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Esa
PostPosted: Sun Oct 20, 2013 9:49 pm    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

nukalas2010 wrote:
But here the problem is, we can't able to enter this compute node (DSN configured) because of no connectivity due to wrong database. We disabled this option "Throw exception on database error ", but no Idea why its throwing error. Please correct me If my understanding is wrong..


Perhaps you need to be connected to a database before you can get a database error...
Back to top
View user's profile Send private message
mgk
PostPosted: Mon Oct 21, 2013 3:14 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Quote:
But here the problem is, we can't able to enter this compute node (DSN configured) because of no connectivity due to wrong database. We disabled this option "Throw exception on database error ", but no Idea why its throwing error. Please correct me If my understanding is wrong..


The problem here is that the option "Throw exception on database error" only applies to the ESQL inside the node. But the node itself will connect to the DB when you enter it for the very first time in a flow to find out the characteristics of the DB. It will only do this once (on the first message through that node after a deploy). To test this, let the first message succeed then stop the DB before the second msg.

Kind regards,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
nukalas2010
PostPosted: Mon Oct 21, 2013 7:05 am    Post subject: Reply with quote

Master

Joined: 04 Oct 2010
Posts: 220
Location: Somewhere in the World....

mgk wrote:
The problem here is that the option "Throw exception on database error" only applies to the ESQL inside the node. ,


I got the answer now.. Thanks mgk sir..
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 » Throw exception on database error - Compute Node
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.