6.11.1 About MicroTx library for JAX-RS Apps

Integrate the MicroTx library with your JAX-RS applications.

The MicroTx library for JAX-RS performs the following functions:

  • Enlists the participant service with the Transaction Coordinator in the transaction.
  • Injects an XADataSource object for the participant application code to use through dependency injection, and then calls start() on the associated XAResource. Participant microservices, those microservices called in the context of an XA transaction, must use an XA-compliant data source. In Java this means using an XADataSource object.

    The MicroTx libraries automatically inject the configured data source into the participant services, so the application developer must add the @Inject or @Context annotation to the application code. The application code runs the DML using this connection.

  • Calls the resource managers to perform operations.