-
Apr 17th, 2010, 10:38 AM
#1
Does Spring batch support multiple writers base on custom condition?
I'm moving from my own in-house batch framework. Actually it works perfectly
for me and my clients. I'm moving to Grails and Grails is based on Spring framework.
The problem is I'd like to refactoring all existing libraries to be
Spring-able and I'm deciding to replace in-house batch framework with
spring batch. By the way, I'd like to make sure that it supports most of
the features that my in-house framework has before throwing my
in-house framework away.
1. The first feature that I need the most is "Multiple writers base on condition"
for example if my reader found item error, it should be redirect those items to
ErrorWriter and add the error message column next to the last field. and for
all the rest good items, redirect it to SuccessWriter.
2. Can I do something after batch processing was completed such as generating
batch id, saving that id to database or deleting/moving the original file.
3. I see the chunk processing technique and commit interval but if I'd like to commit
if all items in batch file have no error or rollback all items if at least
one item in batch file are error.
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