I have started to explore Spring Batch and running into some fundamental issues.
How can I configure a datasource separately for the Job Repository. My Business data resides in a different repository.
Second when I try my batch app, spring batch repeateldy tries to create the same job schema tables over and over again.
Appreciate your help.
If you are using Spring Boot then do like this. note below we are configuring getDatasource() method which provides the data source what we need. This will force boot to not use the default data source.
application.properties