Warning: include_once(/home/tabrez/www/talk/mtrefsearch.php) [function.include-once]: failed to open stream: No such file or directory in /home/tabrezsyed/mandalivia.com/talk/archives/000617.php on line 118

Warning: include_once() [function.include]: Failed opening '/home/tabrez/www/talk/mtrefsearch.php' for inclusion (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/tabrezsyed/mandalivia.com/talk/archives/000617.php on line 118

April 21, 2004

XA transactions

Java Technology Forums

A non-XA transaction is what you get (usually automatically) if you access JDBC connections and do statements over them. A non-XA (or local) transaction can only span one connection (if you rollback, it's the work on that connection only).

A JTA transaction is any transaction that you configure in the application server. For instance, if you use a bean with REQUIRED transaction settings in the deployment descriptor, then that will be a JTA transaction.
Same thing for UserTransaction.begin() (if you do that).

XA-compliant means that the JDBC or JCA driver you are using is compatible with the JTA transaction manager in the application server: the driver will listen to the instructions that the application server gives it to rollback or commit. non-XA-compliant JDBC or JCA drivers don't listen to this and do what they want.

Indeed, the tricky part is when you combine e.g. JDBC and JTA transactions: if you're not careful then the JDBC will still use its own,"separate" local (non-XA) transaction. That is the case for non-XA-compliant drivers. The effect is that when the application server calls rollback() then this will not be done properly. Simply because the application server is unable to rollback your "local, non-XA" transactions. This is not what you want and that's why the application server warns you.

XA
XA and weblogic

X/Open Distributed Transaction Processing (DTP) XA interface

TPMs: (Transaction Processing Monitors): Tuxedo, CICS, NCR TopEnd, UniKix

Posted at April 21, 2004 10:31 PM



Archives
December 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
Recent Entries
Books '05
Eco, Truman
Quotes
Zen koan
Illiberal Democracy
The Cold War vs today
Money
Life stories
Swim with the fishes
Blink of an eye
Categories
aphorisms
books
business
general
history
misc
philosophy
pop-culture
quotes
tech
Blogs
Metafilter
Arts and Letters Daily
Sapta-Sindhu
Beemblog
dineoutindia
Sponsorship