I am using Spring batch 2.2.7 for data processing. The process run in the Tasklet. While processing the data I want to write the information log in the separate file for each batch run instance according to batch Id. Since It is written as cutom Tasklet all the codes are running the execute methods.
The codes are working file. but when there is exception in the batch processing, transaction rollback happens and the log written in the file is also vanishes. I want to preserve the contains of this file.
Please suggest the appropriate alternative.