Announcement Announcement Module
Collapse
No announcement yet.
Spring batch and 2 phase commit Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring batch and 2 phase commit

    Hi, everyone! Please, I need some help. I have a Spring batch where the tables for the spring batch metadata are on one DB, and the business data is on other DB, and I cant change this. So, I created 2 datasources and use 1 for the repository (with one transaction manager) and another datasource for the business data. It is working, but I am worried about the unsynchronization of the 2 DBs, since I can end up with the batch´s metadata not matching the actual situation. Is there any way I can implement 2 phase commit, linking the 2 transaction managers with a global one?

    thank you
Working...
X