Continues with the existing the LRA context when a method is invoked within the context. If a method is called outside an LRA context, the method is not executed and HTTP status code 412 (Precondition Failed) is returned
Scopes an LRA, called the child, within an existing LRA, called the parent. Creates a new LRA when the method is invoked even if there is an existing LRA. The level of nesting depends upon the context within which the LRA context is created. If a method is invoked without a context, the new LRA is at the top level. If invoked with an existing LRA, a new nested LRA starts. The outcome of the nested LRA depends on whether or not the enclosing LRA is closed or canceled. The id of the parent LRA must be present in the header with the name LRA_HTTP_PARENT_CONTEXT_HEADER.
Runs the resource method without an LRA context, when a method is invoked outside an LRA context. If a method is called inside an LRA context, the method is not executed and HTTP status code 412 (Precondition Failed) is returned.
Runs the resource method without an LRA context.
Creates a new context when a method in invoked outside the LRA context. This service then acts as a transaction initiator service. When a method is invoked within an LRA context, the invoked method runs with the same context. This service then acts as a transaction participant service.
Creates a new context irrespective of whether the method in invoked outside or within an LRA context. If a method is called inside an LRA context, the invoked method ignores the existing context and creates a new one
Continues with the existing the LRA context when a method is invoked within the context. If a method is called outside an LRA context, the resource method execution continues outside the LRA context
Copyright © 2022, Oracle and/or its affiliates.
The LRAType within the LRA object determines the type of behaviour expected when the method is executed.
The LRAType also indicates whether a resource method is to be executed within the context of an LRA.