Save This Page
Home » openjdk-7 » javax » sql » [javadoc | source]
javax.sql
public interface: XADataSource [javadoc | source]

All Implemented Interfaces:
    CommonDataSource

A factory for XAConnection objects that is used internally. An object that implements the XADataSource interface is typically registered with a naming service that uses the Java Naming and Directory InterfaceTM (JNDI).
Method from javax.sql.XADataSource Summary:
getXAConnection,   getXAConnection
Method from javax.sql.XADataSource Detail:
 public XAConnection getXAConnection() throws SQLException
    Attempts to establish a physical database connection that can be used in a distributed transaction.
 public XAConnection getXAConnection(String user,
    String password) throws SQLException
    Attempts to establish a physical database connection, using the given user name and password. The connection that is returned is one that can be used in a distributed transaction.