-
Jun 17th, 2011, 11:59 AM
#1
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
#2
Any help on this process ?
-
Jun 20th, 2011, 11:54 AM
#3
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
#4
Hi Dave,
Am glad to get reply from you.
Yes, i understood, but can i get some sample for this ?
-
Jul 5th, 2011, 11:07 PM
#5
Here is an easy tutorial on Spring Batch - CompositeItemWriter...
http://ecomputercoach.com/index.php/...temwriter.html
The articles here, and it's tutorials really helped me on my Spring Batch project. Hope this can help you too.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules