Results 1 to 5 of 5

Thread: Need idea, how to implement mutile writer

  1. #1

    Default 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.

  2. #2

    Default

    Any help on this process ?

  3. #3
    Join Date
    Jun 2005
    Posts
    4,241

    Default

    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.

  4. #4

    Default

    Hi Dave,

    Am glad to get reply from you.

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

  5. #5
    Join Date
    Jun 2011
    Posts
    6

    Default

    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
  •