|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
public interface XAConnectionFactory
XAConnectionFactory is an extension of ConnectionFactory used to create connections in a transaction managed environment. The XAConnectionFactory opperates like a normal ConnectionFactory except an TransactionRegistry is provided from which the XAResource for a connection can be obtained. This allows the existing DBCP pool code to work with XAConnections and gives a the ManagedConnection a way to enlist a connection in the the transaction.
| Method Summary | |
|---|---|
java.sql.Connection |
createConnection()
Create a new Connection in an implementation specific fashion. |
TransactionRegistry |
getTransactionRegistry()
Gets the TransactionRegistry for this connection factory which contains a the XAResource for every connection created by this factory. |
| Method Detail |
|---|
java.sql.Connection createConnection()
throws java.sql.SQLException
Connection in an implementation specific fashion.
An implementation can assume that the caller of this will wrap the connection in
a proxy that protects access to the setAutoCommit, commit and rollback when
enrolled in a XA transaction.
createConnection in interface ConnectionFactoryConnection
java.sql.SQLException - if a database error occurs creating the connectionTransactionRegistry getTransactionRegistry()
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||