Some batch processes need to read or write to a database schema, as required per step execution. This recipe will be for a new way of writing a batch process that involves MySQL database transactions.
Implementing batch processes with a database
Getting started
Using the core components of Spring Batch 4 of the previous recipe, let's design a short-lived synchronous batch process that reads Employee records from an existing table, and writes some items to another table of the same database and also to an XML file.
How to do it...
Let's now implement a blocking...