Interface OracleXADataSource

  • <section role="region">
    • Method Detail

      • getXAConnection

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

        XAConnection getXAConnection​(String user,
                                     String passwd)
                              throws SQLException
        Attempts to establish a database connection that can be used in a distributed transaction.
        Specified by:
        getXAConnection in interface 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:
        SQLException - if a database-access error occurs.
    </section>