Reputation: 300
I need to know how to set programmatically (in java class not xml)a commit-interval in my batch. My program is as the following :
// loop on lines information from flat file
// treatement on line
// commit
Is there a method in a library which permit to do the commit in java class ?
Thank you for your help
Upvotes: 0
Views: 1634
Reputation: 3878
You would need to define your own custom CompletionPolicy. Then you set that as your chunk-completion-policy
in your chunked step.
This old forum has an example implementation.
Upvotes: 1