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

后端 未结 5 1924
没有蜡笔的小新
没有蜡笔的小新 2020-11-28 04:31

I have an application - more like a utility - that sits in a corner and updates two different databases periodically.

It is a little standalone app that has been bu

5条回答
  •  庸人自扰
    2020-11-28 05:15

    You could try Spring ChainedTransactionManager - http://docs.spring.io/spring-data/commons/docs/1.6.2.RELEASE/api/org/springframework/data/transaction/ChainedTransactionManager.html that supports distributed db transaction. This could be a better alternative to XA

提交回复
热议问题