I am working on REST-service (with Spring boot), which runs batch job. I want Batch to work only with embedded datasource (to store metadata), while default datasource (Pos
Using Spring Boot the DataSource
that is used by the BatchDataSourceInitializer
is, unfortunately, not related to the BatchConfigurer
. It just grabs the default DataSource
in the context. If you configure your own BatchDataSourceInitializer
, the Boot one won't kick in and you can define which DataSource
is used directly.