Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Spring Batch Admin uses Spring for its configuration, and it’s straightforward to set up for your own environment. We’ll see first how to plug Spring Batch Admin into the batch metadata. You’ll be able to monitor the execution of your batch jobs, even if they don’t run in the same process as Spring Batch Admin. Then, we’ll see how to add job configurations to Spring Batch Admin. You’ll be able to monitor job executions and start and stop jobs from Spring Batch Admin. We’ll finish with advanced settings used to integrate Spring Batch Admin more deeply with an existing application.
Spring Batch Admin needs only one thing to plug into batch metadata: how to connect to the database that hosts these metadata. In Java terms, this means configuring a data source. You don’t have to bother with Spring configuration; you can just specify the connection parameters in a batch-default.properties file located at the root of the classpath. The following listing shows an example of such a properties file to connect to an H2 database.