Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Section B.4. Configuring Spring Batch Admin

B.4. Configuring Spring Batch Admin

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.

B.4.1. Plugging into your batch metadata

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.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial