• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Spring batch writing log to file.

Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Message for you sir! I think it is a tiny ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic