*I want to configure two different databases in spring admin batch job. But while running the application only "POSTGRES" database is getting configure. Is it possible to configure 2 diff DB for the spring batch application. I have added properties for both DB. It is getting configured and running the application. But when i tried to fetch the data from different DB(secondary). So it is not able to map the tables
batch.jdbc.url=jdbc:postgresql://localhost:5432/glow
batch.jdbc.driver=org.postgresql.Driver
batch.jdbc.user=postgres
batch.jdbc.password=postgres
travel.batch.jdbc.driver=com.mysql.jdbc.Driver
travel.batch.jdbc.url=jdbc:mysql://localhost:3306/travel
travel.batch.jdbc.user=root
travel.batch.jdbc.password=root
I want to configure and connect to both database fetch the data from both DB for different batch job in spring admin batch job project*
In spring batch application two database are not configured at a time only 1db can connect, though it can multiple properties to connect to database at a time only one can connect and it is verified. In spring boot application it is possible to connect multiple database at a time but not in spring batch.