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 » Setting UserException in Compute node for Catch processing

Post new topic  Reply to topic
 Setting UserException in Compute node for Catch processing « View previous topic :: View next topic » 
Author Message
BergerC
PostPosted: Tue Apr 09, 2002 12:14 pm    Post subject: Reply with quote

Novice

Joined: 08 Apr 2002
Posts: 15

I've read an excellent article re: MQSI Exception Processing, but I've hit a snag in implementing similar functionality. Based on Compute node ESQL logic, I can choose to SET the UserException as follows:

SET OutputExceptionList.UserException.Text = 'No valid Order ID received from Host';

At the end of the message flow, a Filter node checks the CARDINALITY of ExceptionList.UserException, and if greater than 0, it routes the message to a Throw node. This is all well and good.

However, it seems that once the Throw node rolls the message back to the catch terminal of the MQInput node, my Trace output shows that the ExceptionList has been overwritten with the property values in the Throw node. There's no evidence of the UserException text I added in the Compute node.

The Advanced Tab mode of the Compute node is set to "All", and the ExceptionList is copied forward prior to writing the value above.

My impression was that text written to the UserException portion of the ExceptionList is incorporated into the ExceptionList after rollback through the Catch terminal of the MQInput node. Is this incorrect?

Any help is appreciated.
Back to top
View user's profile Send private message
TorpedoSTu
PostPosted: Thu Apr 11, 2002 1:05 am    Post subject: Reply with quote

Acolyte

Joined: 14 Nov 2001
Posts: 73

Hiya,

What u should be doing is throwing the user exception AND supplying hte error text at the same time.

Try -

Throw user exception catalog 'WMQIv210' message 2949 values ('Whoops - something went wrong !);

Note that messge no's 2949 thru 2999 are user definable and won't be overwritten.

Regs

Stu
Back to top
View user's profile Send private message Send e-mail
BergerC
PostPosted: Thu Apr 11, 2002 4:52 am    Post subject: Reply with quote

Novice

Joined: 08 Apr 2002
Posts: 15

My apologies - I should have mentioned we're on version 2.0.2. It seems there are some new capabilities in v2.1 that I'm already looking forward to.

To explain a bit more clearly, using Trace I can see the ExceptionList.UserException.Text as it leaves the Compute node, but after the message is routed to the Throw node, then rolled back through the Catch terminal of MQInput, the ExceptionList has been regenerated, and the values I set in the ESQL are over-written, apparently by the Throw node settings.

I get the feeling (from experience) I'm missing something simple here...
Back to top
View user's profile Send private message
BergerC
PostPosted: Fri Apr 12, 2002 12:20 pm    Post subject: Reply with quote

Novice

Joined: 08 Apr 2002
Posts: 15

Thanks to Alex - can't be done in v2.0.2 - the Throw node must contain the properties you want in the ExceptionList.

Another reason to look towards v2.1.
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 » Setting UserException in Compute node for Catch processing
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.