3.1 About MicroTx Distributed Transactions Library for XA
To use Transaction Manager for Microservices - Distributed Transactions (MicroTx Distributed Transactions) to manage the transactions of your microservices, you need to make a few changes to your existing application code to integrate the functionality provided by the MicroTx Distributed Transactions libraries.
- Include the MicroTx Distributed Transactions client libraries in your microservice implementation.
- Use CDI annotations or MicroTx Distributed Transactions client libraries APIs to register the required interceptors and callbacks.
- Use CDI annotations or MicroTx Distributed Transactions client library APIs in participant microservices to obtain the connection to their XA compliant resource manager.
- Use MicroTx Distributed Transactions client libraries API to delineate transaction boundaries indicating an XA transaction has started, and then commit or roll back the transaction.
The MicroTx Distributed Transactions library is available for Java, Node.js,
ORDS, Tuxedo, and WebLogic Server apps.
Parent topic: Develop Applications with XA