Chapter 4. Running batch jobs

 

This chapter covers

  • Running jobs from the command line
  • Scheduling jobs
  • Embedding Spring Batch in a web application
  • Stopping job executions

If you’ve been reading this book from page one, you know the basics of Spring Batch, and you know about jobs, steps, and chunks. You must be eager to get your jobs up and running. Launching a Spring Batch job is easy because the framework provides a Java-based API for this purpose. However, how you call this API is another matter and depends on your system. Perhaps you’ll use something simple like the cron scheduler to launch a Java program. Alternatively, you may want to trigger your jobs manually from a web application. Either way, we have you covered because this chapter discusses both scenarios.

This chapter covers many launching scenarios, so you may not want to read it from beginning to end, especially if you’re in a hurry. You may read this chapter à la carte: think about your scenario and read only what you need. Nevertheless, you should read section 4.1 covering the concepts of launching Spring Batch jobs, and especially section 4.1.3 that guides you through the chapter to pick up the launching solution that best suits your needs.

4.1. Launching concepts

 
 
 

4.2. Launching from the command line

 
 
 

4.3. Job schedulers

 
 

4.4. Launching from a web application

 

4.5. Stopping jobs gracefully

 
 

4.6. Summary

 
 
sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage