java - What is a global transaction? -


jsr 907 jta 1.2 defines "global transaction" term:

the usertransaction.begin method starts global transaction , associates transaction calling thread.

what mean? outermost transaction or what?

basically difference between local transaction , global transaction resource bound. global transaction span multiple resources. local transaction limited 1 resource/datasource.

e.g.

in global transaction write db , send message on queue.

this nicely explained here: http://integrationspot.blogspot.co.uk/2011/03/jta-transactions-local-and-global.html

global transactions (xa)

when managed data source configured global transactions, returns connections can participate in global transactions. global transaction (also called distributed transaction) enlists more 1 resource in transaction.

global transactions provide ability work multiple transactional resources (typically relational databases , message queues).


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

delphi - Indy UDP Read Contents of Adata -