
Originally Posted by
visualjeff
Forking a JVM may not be necessary for complex batch processing. But if you have too then check out SystemCommandTasklet.
Here is a Suggestion:
Think of each file as an item and break out the job out over a number steps.
Step 1:
itemReader reads the files within a directory
itemWriter a flatfile that lists every file that needs to be processed (a snapshot of the directory's current state)
Step 2:
itemReader reads the flatfile listing what files to be processed
itemProcessor processes files (could even be a compositeItemProcessor)
itemWriter writes record to the datasource
Jeff