-
Processing a large file record by record (2 messages)
- Posted by: Nandakumar Devi
- Posted on: February 14 2007 04:58 EST
I have a requirement where I need to sync records from a remote system into the system we are developing. These records to be synced are typically sent at the end of the day in a flat file. I need to do the following once the file is received: - Process one record at a time - Record success / failure (and error message) for the record that was processed - At the end create an output report correlating with the input file that was received I am looking for a reliable mechanism to do the above (should handle cases like a server crash while processing). This looks like a typical integration scenario and wanted to know if any open source software you are aware of can handle this. Thanks, NandaThreaded Messages (2)
- Re: Processing a large file record by record by Jeryl Cook on February 14 2007 22:59 EST
- Re: Processing a large file record by record by Udayan Patel on February 19 2007 11:34 EST
-
Re: Processing a large file record by record[ Go to top ]
- Posted by: Jeryl Cook
- Posted on: February 14 2007 22:59 EST
- in response to Nandakumar Devi
I have a requirement where I need to sync records from a remote system into the system we are developing. These records to be synced are typically sent at the end of the day in a flat file. I need to do the following once the file is received:
if these documents are important, you should send them to a JMS queue, then have some code listening on the queue then process them 1 at a time..if an error happens send the 'problem' message(text file serilized in it) to an error queue. using JMS makes it %100 to with stand server crashes.
- Process one record at a time
- Record success / failure (and error message) for the record that was processed
- At the end create an output report correlating with the input file that was received
I am looking for a reliable mechanism to do the above (should handle cases like a server crash while processing). This looks like a typical integration scenario and wanted to know if any open source software you are aware of can handle this.
Thanks,
Nanda -
Re: Processing a large file record by record[ Go to top ]
- Posted by: Udayan Patel
- Posted on: February 19 2007 11:34 EST
- in response to Nandakumar Devi
Well All I will suggest is if any record fails put it into another file in same location so that next batch would pick it up. There is no open source API for this. Atleast I haven't seen one so far. If you want your code more organized than look into commons digester.