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 » Exception in message broker

Post new topic  Reply to topic
 Exception in message broker « View previous topic :: View next topic » 
Author Message
ethirajesh
PostPosted: Fri Feb 04, 2011 2:01 am    Post subject: Exception in message broker Reply with quote

Apprentice

Joined: 04 Oct 2010
Posts: 46

Hi Friends,

I am invoking a SP, and checking the return code returned by it in the message flow. If it is greater than 0 I am throwing an exception at that line. My question is, if at all the whole database is down or the database connectivity is not available to MB will MB throw exception automatically?

Regards
Rajesh Ethiraj
Back to top
View user's profile Send private message
fatherjack
PostPosted: Fri Feb 04, 2011 2:40 am    Post subject: Re: Exception in message broker Reply with quote

Knight

Joined: 14 Apr 2010
Posts: 522
Location: Craggy Island

ethirajesh wrote:
Hi Friends,

I am invoking a SP, and checking the return code returned by it in the message flow. If it is greater than 0 I am throwing an exception at that line. My question is, if at all the whole database is down or the database connectivity is not available to MB will MB throw exception automatically?

Regards
Rajesh Ethiraj


What happened when you tried it?
_________________
Never let the facts get in the way of a good theory.
Back to top
View user's profile Send private message
harish_td
PostPosted: Fri Feb 04, 2011 5:07 am    Post subject: Re: Exception in message broker Reply with quote

Master

Joined: 13 Feb 2006
Posts: 236

ethirajesh wrote:
My question is, if at all the whole database is down or the database connectivity is not available to MB will MB throw exception automatically?


AFAIK, There is no out-of-the-box way that Message Broker detects that a Stored procedure or the database is down.

Have you reviewed the below link?
http://www.mqseries.net/phpBB2/viewtopic.php?t=53592&start=0&postdays=0&postorder=asc&highlight=

Credit where credit is due, we use the method suggested by fatherjack in our stored procedure calls.
Back to top
View user's profile Send private message Yahoo Messenger
mqjeff
PostPosted: Fri Feb 04, 2011 5:14 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Yes, broker should throw an exception.

You should be testing this, rather than asking this.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Fri Feb 04, 2011 6:53 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.

And don't even think of trying to code for all the different exception types.
One customer wanted this. Then I showed him all the possible exceptions that the DB or the network link going down could produce. Then I told him how long it would be to code them all and then test everyone....
_________________
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 » Exception in message broker
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.