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 » MRM Validation Question

Post new topic  Reply to topic
 MRM Validation Question « View previous topic :: View next topic » 
Author Message
goldym
PostPosted: Thu Dec 01, 2005 5:25 am    Post subject: MRM Validation Question Reply with quote

Centurion

Joined: 24 Jun 2005
Posts: 116

One of my requirements is to validate an incoming message against the dtd. I created a .xsd and imported that into my toolkit in order to validate the incoming message in the MRM domain.

However I am supposed to validate this message raise an exception but continue processing the message? Is it possible to validate a message against the message set but still allow the message flow to continue?

If I set my MQInput Node properties to Validate Content and Value and validate the incoming message if it fails validation how do I continue with the remainder of my message flow? It seems like it just fails with a parsing error.
Back to top
View user's profile Send private message
wooda
PostPosted: Thu Dec 01, 2005 6:03 am    Post subject: Reply with quote

Master

Joined: 21 Nov 2003
Posts: 265
Location: UK

You can control what action results from a validation failure by use of the "failureAction" property on your input node.

in v5 alternatives to "Exception" are "Local Error Log" and "User Trace" which I think are self explanitory.

in v6 you also have "Exception List" which allows you to catch all validation failures in a message before throwing any exceptions.

Now if you want to throw an exception then you can't continue with the normal processing of your flow. That's having your cake and eating it.

So you can either not throw an exception on valdiation failure (ie "Local Error Log" or "User Trace")

Or you can throw an exception and handle your invalid message via the catch terminal in an alternative set of flow nodes. This is what you would typically do if you wished to take any action in your flow for invalid messages.
Back to top
View user's profile Send private message
goldym
PostPosted: Thu Dec 01, 2005 6:22 am    Post subject: Reply with quote

Centurion

Joined: 24 Jun 2005
Posts: 116

[quote="wooda"]You can control what action results from a validation failure by use of the "failureAction" property on your input node.

in v5 alternatives to "Exception" are "Local Error Log" and "User Trace" which I think are self explanitory.

in v6 you also have "Exception List" which allows you to catch all validation failures in a message before throwing any exceptions.

Now if you want to throw an exception then you can't continue with the normal processing of your flow. That's having your cake and eating it.

So you can either not throw an exception on valdiation failure (ie "Local Error Log" or "User Trace")

Or you can throw an exception and handle your invalid message via the catch terminal in an alternative set of flow nodes. This is what you would typically do if you wished to take any action in your flow for invalid messages.[/quote]


Thanks so much for your response -

I am still using v5. I just get conceptualize how to do this but I will give it a try.
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 » MRM Validation Question
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.