Skip to content

Demo of a Spring Batch job that connects to multiple data sources.

License

Notifications You must be signed in to change notification settings

cselagea/multi-datasource-spring-batch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

multi-datasource-spring-batch

This project demonstrates a Spring Batch job that connects to one data source for Spring Batch metadata (i.e. job and step execution data) and another data source for the business data.

The batch job itself is based on Getting Started - Creating a Batch Service.

Testcontainers (requires Docker installation) is used to create two PostgreSQL instances (one per data source) for real database testing.

Execute mvn test to run the test, which will launch the batch job and verify that the batch job inserted the expected business data.

About

Demo of a Spring Batch job that connects to multiple data sources.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages