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 » Information Wanted Regarding Mandatory Tag in Message Set

Post new topic  Reply to topic
 Information Wanted Regarding Mandatory Tag in Message Set « View previous topic :: View next topic » 
Author Message
satyasheel15
PostPosted: Tue Jul 01, 2003 7:30 am    Post subject: Information Wanted Regarding Mandatory Tag in Message Set Reply with quote

Voyager

Joined: 04 Mar 2003
Posts: 86

Hi

Question:

I have set the properties of the element in the message set to MANDATORY. But when I am putting the input message without the tag which has been made MANDATORY in the message set, the input message is parsing without any error.

Please guide.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Craig B
PostPosted: Tue Jul 01, 2003 8:23 am    Post subject: Reply with quote

Partisan

Joined: 18 Jun 2003
Posts: 316
Location: UK

Have you switched on message validation to which will check your minOccurs and maxOccurs constraints. If you are not using validation then the TDS parser will omit elements that are not present regardless of what minOccrs and maxOccurs are set to.
_________________
Regards
Craig
Back to top
View user's profile Send private message
satyasheel15
PostPosted: Tue Jul 01, 2003 9:01 pm    Post subject: Information Wanted Regarding Mandatory Tag in Message Set Reply with quote

Voyager

Joined: 04 Mar 2003
Posts: 86

Hi Craig,

To make the tag mandatory, I have made the properties of the tag 20 : SW20 as:-

Repeat - 1
Min Occurs - 1
Max Occurs - 1
Suspended from Use - No
Element - SW20

But please tell me what do you mean be " Have you switched on message validation to which will check your minOccurs and maxOccurs constraints. "

Please tell me how to do this.

Regards Always

Satyasheel
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Craig B
PostPosted: Tue Jul 01, 2003 11:25 pm    Post subject: Reply with quote

Partisan

Joined: 18 Jun 2003
Posts: 316
Location: UK

In WMQI V2.1 CSD03 MRM message validation was introduced. Information regarding this functionality can be found in the latest Working With Messages book.

In summary, on the MQInput node and Compute nodes there is now a Validation tab from which you can set your message validation options. The MQInput node options will set the options for the message read in from the input queue, and the Compute node options will be used on newly created OutputRoot message trees.

For example if you wanted to validate your input message as soon as it is read in, then you would set you MQInput message validation options to "Content and Value" and the Timing to be "Immediate".

This validation should check elements against the minOccurs and maxOccurs constraints.
_________________
Regards
Craig
Back to top
View user's profile Send private message
satyasheel15
PostPosted: Tue Jul 01, 2003 11:59 pm    Post subject: Information Wanted Regarding Mandatory Reply with quote

Voyager

Joined: 04 Mar 2003
Posts: 86

Hi Craig B,

Your suggestion works. Thanks for that.

But when I set the Validation properties of the Input and Comptue Node to
Validate: ContenAndValue
Failure Action: Exception
Timing: Immediate

and in the Trace Node I have set the properties to File Trace and written the code : ${ExceptionList} to capture which Mandatory tag has failed. But no ExceptionList is generated in the trace node. Please advise why.

Regards Always
Satyasheel
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Craig B
PostPosted: Wed Jul 02, 2003 1:34 am    Post subject: Reply with quote

Partisan

Joined: 18 Jun 2003
Posts: 316
Location: UK

From which failure terminal is your trace node wired?? If you have wired the MQInput node failure terminal then this will not contain your exception. If this what you have wired then this is what would have happened :


    1) your error would have occured in your flow,
    2) the processing would have returned to the MQInput node
    3) Catch terminal not wired, so message rolled back, flow ends, and exception list lost.
    4) Message picked up again.
    5) BackoutCount exceeds threshold, message sent to failure path.


_________________
Regards
Craig
Back to top
View user's profile Send private message
satyasheel15
PostPosted: Wed Jul 02, 2003 2:31 am    Post subject: Information wanted regarding the Trace Node Reply with quote

Voyager

Joined: 04 Mar 2003
Posts: 86

Hi Craig,

I have wired the Fail node and trace node to the MQInput Node. There is not try catch node. I want to capture the error using the trace node [ ${ExceptionList} ]. So please let me know how to do that.

Regards Always

Satyasheel
Back to top
View user's profile Send private message Send e-mail 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 » Information Wanted Regarding Mandatory Tag in Message Set
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.