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 » FIle Input node in MB7.0.0.1

Post new topic  Reply to topic
 FIle Input node in MB7.0.0.1 « View previous topic :: View next topic » 
Author Message
uzma.khaiser
PostPosted: Fri Aug 19, 2011 10:11 pm    Post subject: FIle Input node in MB7.0.0.1 Reply with quote

Newbie

Joined: 20 Jul 2010
Posts: 5

Hi,

We have a requirement where we need to read a huge file(10 MB) using FileInput Node record by record and batch 100 records each and create the XML out of it and send it and take the next set of records and proceed the similar way. Every time we pick the record and save in Env Tree, when the next record is picked as its a new txn, the env tree is getting cleared. Any help on how to save the Env tree or process this request would be great.

Thanks.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Sat Aug 20, 2011 4:36 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

there are several ways to solve your problem

You could read the whole file in one go and then loop through the records building your output message as you go.

you could read each record and write it to a DB table. When you have enough you can select all the rows, build your message and send it then truncate the table

You could store the records in a Shared ESQL Row and etc etc

Each of these will have their own +ve's and -ve's. It is up to you to decide which is the best way for your site.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Sat Aug 20, 2011 12:14 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You could use collector node.

You could rework your model such that it thought that a single "record" consisted of up to 100 of the things it currently thinks are "records" and then tell the FileInput node to read the file by records.

You could figure out the fixed length that corresponded to 100 records.

You could do a bunch of other things.
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 » FIle Input node in MB7.0.0.1
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.