当前页面:
在线文档首页 >
Java Platform, Enterprise Edition v1.3.1 API Specifications
Java 2 Platform EE v1.3: Interface XAConnection - Java Platform, Enterprise Edition v1.3.1 API Specifications
javax.sql
Interface XAConnection
- All Superinterfaces:
- PooledConnection
- public interface XAConnection
- extends PooledConnection
An XAConnection object provides support for distributed
transactions. An XAConnection may be enlisted in a distributed
transaction by means of an XAResource object.
getXAResource
public XAResource getXAResource()
throws java.sql.SQLException
Return an XA resource to the caller.
- Returns:
- the XAResource
- Throws:
java.sql.SQLException
- if a database-access error occurs