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 » message flow exception handling

Post new topic  Reply to topic
 message flow exception handling « View previous topic :: View next topic » 
Author Message
newcall
PostPosted: Wed Nov 27, 2002 12:38 am    Post subject: message flow exception handling Reply with quote

Newbie

Joined: 27 Nov 2002
Posts: 1

hi
i have developed a message flow which converts xml to mrm. In the mrm, i have field name which is 10 characters in length. If the length is > or < 10, the compute node is throwing an error. I want to use a try/catch block but i dont know where to write the logic to know that the error has occured for the specified field - name. please help me. is there anything in mqsi which tells you about this error ?
Back to top
View user's profile Send private message
amigupta1978
PostPosted: Wed Nov 27, 2002 1:35 am    Post subject: Reply with quote

Centurion

Joined: 22 Jan 2002
Posts: 132
Location: India

Hi,
U can use the following set of things

USe try-catch node before Compute node. Then connect Try terminal to compute node and catch terminal where u will handle the exception.
Whenever any exception is thrown in MQSI it creates a tree ExceptionList. U can get feel of it if u connect a Trace node to the catch terminal and write the following pattern ${ExceptionList}
and then u can see how to handle the exceptions.

Regards,
Amit
_________________
IBM certified MQseries Specialist
IBM certified WMQI Specialist
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
lung
PostPosted: Wed Nov 27, 2002 4:58 pm    Post subject: Reply with quote

Master

Joined: 27 Aug 2002
Posts: 291
Location: Malaysia

If the length is more than the length defined in your MRM, it will return an exception.

But I wasn't aware that if the length is less, it will return an exception as well... I have messages in which the field length is less than the length defined in my MRM, and it gives me no exception
_________________
lung
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
kirani
PostPosted: Wed Nov 27, 2002 9:30 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Lung,

Could you tell us more about the properties set in MRM for this element?
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
lung
PostPosted: Thu Nov 28, 2002 1:50 am    Post subject: Reply with quote

Master

Joined: 27 Aug 2002
Posts: 291
Location: Malaysia

I was talking about converting pure XML messages to MRM-XML. If I'm trying to convert a host message to MRM-CWF, then definitely the length will need to be the same.

Anyway, which element are you asking about, Kiran?


_________________
lung
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
kwelch
PostPosted: Mon Dec 02, 2002 12:03 pm    Post subject: Reply with quote

Master

Joined: 16 May 2001
Posts: 255

If the field in the MRM is defined as 10 I believe it expects 10 exactly, no less no more. For those less, you can define padding character of space in the CWF tab. For those greater you can use substring to get the 10 bytes you want.

Karen
Back to top
View user's profile Send private message Send e-mail
lung
PostPosted: Mon Dec 02, 2002 9:54 pm    Post subject: Reply with quote

Master

Joined: 27 Aug 2002
Posts: 291
Location: Malaysia

Quote:
If the field in the MRM is defined as 10 I believe it expects 10 exactly, no less no more.


I think this is only true if you installed CSD03...
_________________
lung
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
kirani
PostPosted: Mon Dec 02, 2002 9:57 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Lung,
This is true even with lower version/CSD of MQSI/WMQI. As Karen said, if you have Element length assigned in CWF/TDS tabs, you have to send data of exact length.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
kwelch
PostPosted: Tue Dec 03, 2002 7:02 am    Post subject: Reply with quote

Master

Joined: 16 May 2001
Posts: 255

Hi Lung,

We don't have CSD3 installed yet.

Karen
Back to top
View user's profile Send private message Send e-mail
lung
PostPosted: Tue Dec 03, 2002 5:33 pm    Post subject: Reply with quote

Master

Joined: 27 Aug 2002
Posts: 291
Location: Malaysia

Is it? Okay, thanks for the clarification
_________________
lung
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » message flow exception handling
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.