JDBC Type 4 Driver Programmer's Reference

For detailed information about WebLogic Server, see the BEA WebLogic Server
documentation, which is located at the following URL:
http://edocs.bea.com/wls/docs81/index.html.
This section discusses features of BEA WLS 8.1 that apply to use with the Type 4 driver.
Compatibility
The Type 4 driver is compatible with BEA WLS version 8.1 or later.
Note: BEA WLS 7.0 Last Agent Optimization feature is not supported. Therefore, the Type 4
driver can be used with BEA WLS 7.0 for local transactions only.
For more about using Last Agent Optimization in BEA WLS 8.1, see Global Transactions .
Transactions
The Type 4 Driver can be used under the control of BEA WLS 8.1 to manage transactions.
The WLS transaction manager:
sets auto commit to false by calling the setAutoCommit(false) method on a Type
4 driver connection.
completes the driver connection's transaction by executing the rollback() or
commit() method associated with the connection.
Global Transactions
To enable the Type 4 driver to participate in a global/XA transaction, you must enable Last
Agent Optimization in WLS 8.1. WLS 8.1 coordinates the transaction so that a commit or
rollback is effective for the entire transaction.
With Last Agent Optimization enabled, the WLS 8.1 transaction manager issues prepare
messages to the
javax.transaction.xa.XAResources involved in the transaction, and then
performs the operation on the resource adapter.
If the operation is successful, the global transaction committed. If the operation fails, the global
transaction is rolled back.