Skip to content

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

License

Notifications You must be signed in to change notification settings

uesleilima/spring-boot-batch-integration-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published