To enable management of local transaction
containments, configure the following EJB extensions attributes. These attributes
configure, for the component, the behavior of the container's local transaction
containment (LTC) environment that the container establishes whenever a global
transaction is not present.
- Boundary
- Specifies the duration of a local transaction context. You can set this
attribute to either Bean method, as described in Entity bean assembly settings.
- Resolution control
- Specifies how the local transaction is to be resolved before the local
transaction context ends: by the application through user code or by the EJB
container. You can set this attribute to either Application or ContainerAtBoundary,
as described in Entity bean assembly settings.
- Unresolved action
- Specifies the action that the container must take when the local transaction
context scope ends, if resources are uncommitted by an application in a local
transaction and the Resolution control is set to Application. You can
set this attribute to either Commit or Rollback, as described
in Entity bean assembly settings.
For
a value of Commit, the container will take the commit action only in
the absence of an un-handled exception. If the application method executing
under the local transaction context ends with an exception, then the local
transaction context is rolled back by the container. (This is the same behavior
as for global transactions.)