Interface OracleXADataSource

    • Method Detail

      • getXAConnection

        javax.sql.XAConnection getXAConnection()
                                        throws java.sql.SQLException
        Attempts to establish a database connection that can be used in a distributed transaction.
        Specified by:
        getXAConnection in interface javax.sql.XADataSource
        Returns:
        An XAConnection to the database
        Throws:
        java.sql.SQLException - if a database-access error occurs.
      • getXAConnection

        javax.sql.XAConnection getXAConnection​(java.lang.String user,
                                               java.lang.String passwd)
                                        throws java.sql.SQLException
        Attempts to establish a database connection that can be used in a distributed transaction.
        Specified by:
        getXAConnection in interface javax.sql.XADataSource
        Parameters:
        user - The database user on whose behalf the Connection is being made.
        passwd - The user's password
        Returns:
        An XAConnection to the database
        Throws:
        java.sql.SQLException - if a database-access error occurs.