DEV Community

FaN000s
FaN000s

Posted on

1

Help needed: Spring batch + scheduled task = no transaction

I have a simple spring boot application with a scheduled task. The scheduled task starts a spring batch job.

The scheduled task starts normally and the batch job works fine but nothing Is saved to the database.

You can find all the details in this SO question

https://stackoverflow.com/questions/54457041/spring-boot-repository-does-not-save-to-the-db-if-called-from-scheduled-job

Hope anyone can help.

Edit

I have updated the question at SO with the answer that worked for me.

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay