wood burning stoves 2.0*
The moose likes JDBC and the fly likes When one should use XA Drivers ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "When one should use XA Drivers ?" Watch "When one should use XA Drivers ?" New topic
Author

When one should use XA Drivers ?

Francesco Marchioni
author
Ranch Hand

Joined: Sep 22, 2003
Posts: 190
Hi all,
I have a question about the purpose of XA Drivers.
Time ago we had a bug in a transation processing application
that runs on Bea Weblogic 8.1 which doesn't use XA Drivers.

Because of that bug the application didn't rollback transactions in case of errors.

Since the ejb that controlled the tx is Container managed tx-Required, I was
told to investigate that the EJBException was correctly propagated to
the Container, and that was it.

So my question is: when are XA Drivers necessary ? only in Bean Managed tx ?
In CMT since it's the Container that drives the tx it's not necessary to use them ???

Thanks in advance
Francesco


WildFly 8 Administration Book - JBoss Tutorials
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

An XA driver is used when you have a transaction that spans more than one transacional resource. So if your EJB application performs data manipulation on two schemas for example you might use XA.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: When one should use XA Drivers ?