7.10 Develop Spring Boot Apps with XA
Use the MicroTx library with your Spring Boot applications.
You can use Spring REST or JAX-RS to develop your Spring Boot applications.
The procedure to integrate the MicroTx library files remains almost the same in both cases. When you develop Spring Boot applications based on JAX-RS, you must include different MicroTx Maven dependencies and you must register filters so that the MicroTx library can intercept HTTP calls and manage the transaction.
Topics
- Configure Library Properties for Spring Boot Apps
Provide configuration information for the MicroTx library properties for every Spring Boot application. The property values that you must provide would vary depending on whether the application is a participant or an initiator. - Configure Spring Boot App as Transaction Initiator
A transaction initiator service initiates or starts a transaction. Based on your application's business logic, a transaction initiator service may only start the transaction or start the transaction and participate in the transaction as well. - Configure Spring Boot App as Transaction Participant
Based on whether the resource manager is compliant with XA or not, set environment variables and implement different classes from the MicroTx library to configure your Spring Boot participant application.
Parent topic: Develop Applications with XA