Copyright
Brief Table of Contents
Table of Contents
Foreword
Preface
Acknowledgments
About this Book
About the Cover Illustration
1. Background
Chapter 1. Introducing Spring Batch
1.1. What are batch applications?
1.2. Meet Spring Batch
1.2.1. Robustness and reliability
1.2.2. Scaling strategies
1.3. Introducing the case study
1.3.1. The online store application
1.3.2. Why build an online store with batch jobs?
1.3.3. Why use batch processes?
1.3.4. The import product use case
1.4. Reading and writing the product data
1.4.1. Anatomy of the read-write step
1.4.2. Reading a flat file
1.4.3. Implementing a database item writer
1.4.4. Configuring a database item writer
1.4.5. Configuring the read-write step
1.5. Decompressing the input file with a tasklet
1.5.1. Why compress the file?
1.5.2. Implementing the decompression tasklet
1.5.3. Configuring the tasklet
1.6. Testing the batch process
1.6.1. Setting up the test infrastructure
1.6.2. Leveraging SpEL for configuration
1.6.3. Writing the test for the job
1.7. Skipping incorrect lines instead of failing
1.8. Summary
Chapter 2. Spring Batch concepts
2.1. The batch domain language
2.1.1. Why use a domain language?
2.1.2. Main components of the domain language
2.1.3. How Spring Batch interacts with the outside world
2.2. The Spring Batch infrastructure
2.2.1. Launching jobs and storing job metadata
2.2.2. Configuring the Spring Batch infrastructure in a database
2.3. Anatomy of a job
(try again in a couple of minutes)