Closed artsgard closed 4 years ago
My guess is that it's not using the right transaction manager. Check this post on Stack Overflow for more information.
thanks anyway
willem
El lun., 31 ago. 2020 a las 21:01, Dimitri (notifications@github.com) escribió:
My guess is that it's not using the right transaction manager. Check this post on Stack Overflow https://stackoverflow.com/questions/54457041/spring-boot-repository-does-not-save-to-the-db-if-called-from-scheduled-job for more information.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/g00glen00b/gatsby-blog/issues/74#issuecomment-683969535, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMX6BQH27YMHAIXVSY4OFSLSDPXSBANCNFSM4QAZJDOQ .
Ok, good to hear that!
Hi Dimitri
I am working on a demo project showing micro services (work in progress): see thollem repo. Read your "Running a Spring batch at a schedule" and liked it.
Now I am trying to run a mysql-db updated on a daily schedule, but my batch writer is not inserting data.
Strange enough when I start first a springboot webapp and call the jobLauncher.run in a controller the insert works.
It migh be an issue of the batch and boot spring context?
I am also working on a config of a second mysql. I'd like those meta-tables to go into another DB...... Also not an easy issue for me!
greetings willem from Barcelona
batch-schedular.pdf