Initialize a LRA object
The LRA URI is the endpoint URI that will be used to participate in an LRA by creating a new LRA Context or joining an existing one as determined by the type attribute value
The type attribute of an LRA indicates whether a resource method is to be executed within the context of an LRA. The value must be one of the LRAType
The cancelOn element can be set to indicate which HTTP response codes will cause the current LRA to cancel.
If the LRA has already been closed when the
The cancelOnFamily element can be set to indicate which families of HTTP response codes will cause the current LRA to cancel.
If the LRA has already been closed when the
If the
The LRA URI is the endpoint URI that will be used to participate in an LRA by creating a new LRA Context or joining an existing one as determined by the type attribute value
If the
The type attribute of an LRA indicates whether a resource method is to be executed within the context of an LRA. The value must be one of the LRAType
Copyright © 2022, 2025, Oracle and/or its affiliates.
The LRA object is used to mark the participant endpoint that will be used to participate in an LRA. LRA object defines the LRA context. When the endpoint method that is set to the lraURI in an LRA object finishes execution, the LRA is closed by default. That can be suppressed by setting the end attribute to false, which ensures that the LRA is not closed at the end of a method. Then the LRA can be closed in a different method. The LRA object provides a similar behavior as the LRA annotation in the Microprofile LRA specification.