3.8. Local and Global Transactions

The resource adapter must support the usage of both local and global transactions within the same transactional connection. Local transactions are started and coordinated by the resource manager internally. The XAResource interface is not used for local transactions. When using the same connection to perform both local and global transactions, the following rules apply:
  • The local transaction must be committed (or rolled back) before starting a global transaction in the connection.
  • The global transaction must be dissociated from the connection before any local transaction is started.