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 the transactionality

Post new topic  Reply to topic
 Setting the transactionality « View previous topic :: View next topic » 
Author Message
kash3338
PostPosted: Wed Sep 07, 2011 10:07 pm    Post subject: Setting the transactionality Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

Hi,

I have a requirement wherein I need to get a flat file from a FTP location and the file would contain multiple records. I need to send each record as a XML to a Publish node.

Now the requirement is that, even if one record fails in between, I need to send the rest and log the error for the failed record in a Queue. How do I implement this solution?
Back to top
View user's profile Send private message Send e-mail
zpat
PostPosted: Wed Sep 07, 2011 11:19 pm    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Seems straightfoward use of fileinputnode (record mode) and a MQoutput node for the failures.

Using a MQoutput node does not mean that the flow has to terminate at that point - it can continue on the other side of it.

What would cause a record to "fail"?
Back to top
View user's profile Send private message
kash3338
PostPosted: Wed Sep 07, 2011 11:36 pm    Post subject: Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

While mapping each record to XML, we do some validation and throw exception on some cases.

But what is Record Mode in File Input Node? I just get the complete file and using the message set cardinality, split the messages and map to XML. Where do I connect to get the failed messages?
Back to top
View user's profile Send private message Send e-mail
zpat
PostPosted: Thu Sep 08, 2011 12:32 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Look at record and element tab property in fileinput.

You should process it record by record. THis is the nature of WMB.

WMB is not a container for a program to start, process all data and stop.

It handles transactions atomically (or should do), record by record or message by message.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Sep 08, 2011 4:03 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

kash3338 wrote:
I just get the complete file and using the message set cardinality, split the messages and map to XML.


Why? Why not have the node do this for you as my worthy associate points out? You're paying all this money for WMB, why write code yourself?

If you want to continue processing even if one record fails validation, there can't be any affinity between records.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 the transactionality
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.