Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 1.2 KB

File metadata and controls

29 lines (21 loc) · 1.2 KB

Spring Boot Batch-Integration Sample

Sample project for Spring Batch and Spring Integration using Spring Boot and Java Config

Goal

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.

Spring Integration + Spring Batch + JPA

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.

Usage

Just run it, spring boot maven plugin do all the dirty job for you:

$ mvn spring-boot:run

Execution Flow

  1. Pool files from input dir;
  2. Creates job request to process file;
  3. Execute request;
  4. Execution listener asyncronously populates job execution channel;
  5. On job execution fail, restart it;
  6. On job execution completion, move original file to 'processed' dir.

References