Jun 17th, 2011, 11:59 AM
Need idea, how to implement Multiple writer
1. My process needs to read a CSV file
2. for each read, go to two database and get more info
3. write them to two diff DB
Not sure, what shoudl i follow.
for 1. i use flatfilereader
for 2. need to do item processor and two DAO call to collect the data.
for 3. use composite-writer ?
any idea, or project code will help.
Last edited by fusionobject; Jun 17th, 2011 at 02:26 PM.
Jun 20th, 2011, 08:44 AM
Any help on this process ?
Jun 20th, 2011, 11:54 AM
Probably what I would do is use an ItemProcessor to transform the input line into a composite object (tuple) wrapping the two outputs. Nothing clever about that, if I understood the requirement.
Jun 20th, 2011, 11:11 PM
Am glad to get reply from you.
Yes, i understood, but can i get some sample for this ?
Jul 5th, 2011, 11:07 PM
Here is an easy tutorial on Spring Batch - CompositeItemWriter...
The articles here, and it's tutorials really helped me on my Spring Batch project. Hope this can help you too.