You are previewing Spring Batch in Action.

Spring Batch in Action

Cover of Spring Batch in Action by Arnaud Cogoluegnes... Published by Manning Publications
O'Reilly logo

Chapter 8. Implementing bulletproof jobs

This chapter covers

  • Handling errors with retry and skip
  • Logging errors with listeners
  • Restarting an execution after a failure

Batch jobs manipulate large amounts of data automatically. Previous chapters showed how Spring Batch helps to read, process, and write data efficiently and without much Java code, thanks to ready-to-use I/O components. It’s time to deal with the automatic aspect of batch jobs. Batch jobs operate over long periods, at night, for example, and without human intervention. Even if a batch job can send an email to an operator when something’s wrong, it’s on its own most of the time. A batch job isn’t automatic if it fails each time something goes wrong; it needs to be able to handle ...

The best content for your career. Discover unlimited learning on demand for around $1/day.