8.3 Develop Java Apps with Saga
You can develop JAX-RS and Spring-REST based applications that use the Saga transaction protocol.
Eclipse Microprofile provides the annotations and APIs to coordinate Saga transactions for JAX-RS based REST applications. See https://download.eclipse.org/microprofile/microprofile-lra-1.0-M1/microprofile-lra-spec.html#introduction. For more information about the Saga annotations, see https://download.eclipse.org/microprofile/microprofile-lra-1.0-M1/microprofile-lra-spec.html.
Spring REST-based applications use the MicroTx Saga library for Spring Boot. JAX-RS and Spring REST-based applications use Saga annotations with the same names and function. However, the JAX-RS applications use the import static org.eclipse.microprofile.lra.annotation.ws.rs.LRA
package, which is an Eclipse MicroProfile package. Spring REST-based applications uses the com.oracle.microtx.springboot.lra.annotation.*
package, a custom MicroTx library file.
- Develop Helidon Applications with Saga
Helidon provides implementation for the Saga client specifications. - Configure MicroTx Library Properties for Java Apps
Provide configuration information for the MicroTx library properties. You must perform this step for all Micronaut and Spring REST-based apps which participate or initiate the transaction and use the MicroTx library. - Develop Spring Boot Applications with Saga
For Spring Boot applications that use the Saga transaction protocol, you must use the Java library file provided by MicroTx. - Develop Micronaut Apps with Saga
You can integrate the MicroTx library files with Micronaut applications that use the Saga transaction protocol. - Develop Java Apps that Use Saga and Lock-Free Reservation
MicroTx Saga libraries for Spring REST and Micronaut applications support lock-free reservation.
Parent topic: Develop Applications with Saga