Sample project for Spring Batch and Spring Integration using Spring Boot and Java Config
Build a processing flow using the IntegrationFlow configuration builder and general Java Config instead of xml bean configuration to activate batch jobs and read/write message channels.
In this sample we have a integration flow where we pool files in a specific directory and request batch jobs to process those files persisting the in a memory database using JPA repositories.
Just run it, spring boot maven plugin do all the dirty job for you:
$ mvn spring-boot:run
- Pool files from input dir;
- Creates job request to process file;
- Execute request;
- Execution listener asyncronously populates job execution channel;
- On job execution fail, restart it;
- On job execution completion, move original file to 'processed' dir.