Announcement Announcement Module
Collapse
No announcement yet.
Multiple response files corresponding to request files Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Multiple response files corresponding to request files

    My input files are as below,

    /dir/subdir/
    1. request_1.csv
    2. request_2.csv
    My response files should be as below,

    /dir/anothersubdir/
    1. response_1.csv
    2. response_2.csv
    I have, currently, implemented as below.

    1. Created a launcher class (POJO with main method) which will get the list of files.
    2. Stores the request and response file names to the job context, so that ItemReader and ItemWriter gets their respective names in the iteration.
    3. Iterates thru the list of files and Invokes the lanucher (org.springframework.batch.core.launch.JobLauncher ) for each of the request file.

    Is there any better way to handle this situation using Spring Batch capabilities?

    -Santhosh


  • #2
    Sorry for not getting to this sooner. We are in the process of moving to StackOverflow for our forums.
    This question is probably a better candidate for StackOverflow, perhaps against the #spring-batch tag. If you do post it there, please reply here with the link. Thanks!

    Comment

    Working...
    X