public interface XAConnectionFactory extends ConnectionFactory
Modifier and Type | Method and Description |
---|---|
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.
|
TransactionRegistry getTransactionRegistry()
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 ConnectionFactory
Connection
java.sql.SQLException
- if a database error occurs creating the connectionCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.