## Uses of Interface
javax.sql.XAConnection

- Packages that use XAConnection
  Package | Description
  --- | ---
  javax.sql | Provides the API for server side data source access and processing from the JavaTM programming language.

- - ### Uses of XAConnection in javax.sql

    Methods in javax.sql that return XAConnection
    Modifier and Type | Method | Description
    --- | --- | ---
    `XAConnection` | XADataSource.`getXAConnection()` Attempts to establish a physical database connection that can be used in a distributed transaction.
    `XAConnection` | XADataSource.`getXAConnection(String user, String password)` Attempts to establish a physical database connection, using the given user name and password.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.