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.
, , . - XA. , JDBC, , Spring ( ).
XA ( XA , , - , , ), , . , , .
: , . , . , . ( ) . . , , , . , , , .
. Atomikos, JVM.
Source: https://habr.com/ru/post/1718927/More articles:Как создать файл bmp из данных rgb, хранящихся в txt файле? - javaПередача постоянно изменяющихся строк запроса PHP - urlUTF8 String Encoding in ISO-8859-1 String (VB.NET) - vb.netSystem.IO.File.ReadAllText does not throw an exception for invalid encoding - .netIs there a standard copy-paste method for safely placing SWF on a web page? - htmlDebugging problems - debuggingPHP and MSSQL - advanced text field extraction - phpHow to add popup menu to NSToolbarItem? - objective-cHow do you press the menu button when you press the menu button? - objective-cvisual C ++ declaring a string array - c ++All Articles