javax.sql
Interface XAConnection

All Superinterfaces:
PooledConnection (src)
All Known Implementing Classes:
MockedXADataSource.MockedXAConnection (src)

public interface XAConnection
extends PooledConnection (src)

An XAConnection object provides support for distributed transactions. An XAConnection may be enlisted in a distributed transaction by means of an XAResource object.


Method Summary
 XAResource (src) getXAResource()
          Return an XA resource to the caller.
 
Methods inherited from interface javax.sql.PooledConnection (src)
addConnectionEventListener, close, getConnection, removeConnectionEventListener
 

Method Detail

getXAResource

public XAResource (src)  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