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 10. Controlling execution

This chapter covers

  • Controlling a job’s execution path
  • Sharing data between job steps at runtime
  • Externalizing job definitions for reuse
  • Choosing how to stop a job after executing a step

Writing batch applications isn’t an easy task. Previous chapters covered how to read and write data efficiently with Spring Batch. These chapters also covered error handling during processing by skipping errors or retrying operations transparently. This chapter covers mastering job execution with Spring Batch. What do we mean by job execution?

A job consists of steps, and execution refers to the sequence of steps that run when a job starts. In simple jobs, the sequence of steps is linear. In complex jobs, execution can ...

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