What is the advantage of using XA drivers? Can a transaction be rolledback by calling setRollBackOnly() even if we are not using XA driver? What a XA driver does can it be achieved using Stored procedure, if yes what are the disadvantages?
In part, the answer depends on the driver. For instance, using the WebLogic jDriver for Oracle in XA mode does not support DDL operations such as create/drop table or stored procedures. If you want to perform DDL operations, you need to define two different connection pools as follows:
- One non-XA connection pool that can be used for DDL operations.
- One XA connection pool that can be used for DML operations in distributed transactions.
SCJP 1.4, SCWCD 1.3, SCBCD 1.3
We don't have time to be charming! Quick, read this tiny ad: