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 » how to use a throw node(urgent)

Post new topic  Reply to topic
 how to use a throw node(urgent) « View previous topic :: View next topic » 
Author Message
k.srinivas
PostPosted: Wed Apr 21, 2004 3:03 am    Post subject: how to use a throw node(urgent) Reply with quote

Apprentice

Joined: 16 May 2002
Posts: 29
Location: chennai

hi guys
can anybody explain me how to use a throw node in details
thanks
srinivas
Back to top
View user's profile Send private message Send e-mail
dkeister
PostPosted: Wed Apr 21, 2004 4:51 am    Post subject: Reply with quote

Disciple

Joined: 25 Mar 2002
Posts: 184
Location: Purchase, New York

Fairly straight forward.

Here's an example:

if Environment.Variables.Ctl.ErrorFail = 'on' then
throw user exception catalog '1ORC' message 2956 values (Environment.Variables.Ctl.FeedDefId, cast(Environment.Variables.Ctl.FEED.ID as Integer), 'RC contains invalid GL Company and Parent Org.');
else
...

In this example, prior to this point an error was detected and an environment variable set.

the error code is '2956' which is in the range (2949-2999) available for users.

You can have up to 8 variables to display in the exception. In this example:
The first is an environment variable value, the second and third are strings.

I have never gotten to the point of creating a message catalog. I put '1ORC' but there is no catalog. I think you could use 'WMQIv210' just as well.

Dean
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dkeister
PostPosted: Wed Apr 21, 2004 4:53 am    Post subject: Reply with quote

Disciple

Joined: 25 Mar 2002
Posts: 184
Location: Purchase, New York

One more thing, this will operate just as any other error thrown by ESQL so you can catch it on the failure node or what ever.

Dean
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » how to use a throw node(urgent)
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.