Copyright © 2014-2015
Copies of this document may be made for your own use and for distribution to others, provided that you do not charge any fee for such copies and further provided that each copy contains this Copyright Notice, whether distributed in print or electronically.
The SpringBatchModule activates support for Spring Batch jobs. It takes care of creating the necessary Spring Batch related infrastructure for a database backed job store. Modules depending on the SpringBatchModule can simply use the infrastructure beans and define or execute jobs.
Module website: https://foreach.atlassian.net/wiki/display/AX/SpringBatchModule
<dependencies> <dependency> <groupId>com.foreach.across.modules</groupId> <artifactId>spring-batch-module</artifactId> <version>1.0.0.RELEASE</version> </dependency> </dependencies>
Initial public release available on Maven central.
The SpringBatchModule will setup database backed Spring Batch support and will install the required schema when bootstrapping.
Batch related infrastructure will be created and the following beans exposed:
@StepScope annotations in other modules will also be enabled.
Beans of type
Job created in other modules will automatically be added to the
JobRegistry in a group with the same name as the module that defined the job.
By default the SpringBatchModule will use a
SimpleJobLauncher with an
SimpleAsyncTaskExecutor that handles up to 5 jobs concurrently.
If you want to change the
TaskExecutor being used, you can do so through the springBatch.taskExecutor property.
By default the SpringBatchModule will scan the
ApplicationContext in order to find an appropriate
You can force a
PlatformTransactionManager bean to be used by naming it springBatchTransactionManager and ensuring the SpringBatchModule context can find it.