7.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.