Announcement Announcement Module
Collapse
No announcement yet.
Need idea, how to implement mutile writer Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Need idea, how to implement mutile 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, 03:26 PM.

  • #2
    Any help on this process ?

    Comment


    • #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.

      Comment


      • #4
        Hi Dave,

        Am glad to get reply from you.

        Yes, i understood, but can i get some sample for this ?

        Comment


        • #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.

          Comment

          Working...
          X