# The JTA API

The JTA API is made up of the two interfaces and one exception that are part of the java.transaction.xa package. Derby fully implements this API.

The implemented APIs are as follows. The following sections provide some implementation details.

- javax.transaction.xa.XAResource
- javax.transaction.xa.Xid
- javax.transaction.xa.XAException

- Recovered global transactions
  Using the XAResource.prepare call causes a global transaction to enter a prepared state, which allows it to be persistent.
- XAConnections, user names and passwords
  The behavior of transactions created by XAConnection objects varies according to whether a user name and password are specified when the XAConnection object is created.
- XA transactions and deferred constraints
  Derby defines how some XAResource methods behave in conjunction with deferred constraints.

Parent topic: Java EE compliance: Java Transaction API and javax.sql interfaces
Related reference
javax.sql: JDBC interfaces