What is the ‘best’ way to do distributed transactions across multiple databases using Spring and Hibernate

The best way to distribute transactions over more than one database is: Don’t. Some people will point you to XA but XA (or Two Phase Commit) is a lie (or marketese). Imagine: After the first phase have told the XA manager that it can send the final commit, the network connection to one of the … Read more