Global Transaction Handling in Spring Integration

雨燕双飞 提交于 2019-12-11 16:29:49

问题


Its a Spring Integration application.I have a requirement where I need to persist to DB and then post to Queue/Topic. This should be part of a single transaction. I am planning to use the JTATransactionManager. Application Server is Tomcat. Would someone please provide some sample configuration code required for this implementation.


回答1:


You need a third party stand-alone XA transaction manager such as Atomikos. Tomcat doesn't have one.

You might also consider alternatives to using full-blown 2pc.



来源:https://stackoverflow.com/questions/25044375/global-transaction-handling-in-spring-integration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!