Processing transactions covering database servers

I have a scenario where a unit of work is defined as:

Update table T1 in database server S1
Update table T2 in database server S2

And I want the above unit of work to happen either completely or not at all (as is the case with any database transaction). How can i do this? I searched extensively and found this post next to what I expect, but this seems very specific to Hibernate.

I use Spring, iBatis and Tomcat (6.x) as a container.

+3
source share
2 answers

, , . - XA. , JDBC, , Spring ( ).

XA ( XA , , - , , ), , . , , .

: , . , . , . ( ) . . , , , . , , , .

+6

. Atomikos, JVM.

+2

Source: https://habr.com/ru/post/1718927/


All Articles