Local transaction settings are WebSphere® Application Server extensions
to the Enterprise JavaBeans™ specification.
To define local transaction settings:
Switch to the J2EE perspective.
In the Project Explorer view, select the desired EJB module.
Right-click on the Deployment Descriptor Editor and
select Open With from the pop-up menu.
On the Bean page of the editor, select a
bean and find the Local Transaction 2.0 section under
the WebSphere Extensions
section.
In the Boundary field, select one of the
following values to specify the duration of a local transaction context:
BeanMethod: Specifies that the local transaction
begins when the method begins, and ends when the method ends.
ActivitySession: Specifies that the local transaction
must be resolved within the scope of any ActivitySession in which it was started
or, if no ActivitySession context is present, within the same bean method
in which it was started.
In the Resolver field, select one of the
following values to specify how the local transaction is to be resolved before
the local transaction context ends:
In the Unresolver action field, select one
of the following values to specify the action that the EJB container must
take if resources are uncommitted by an application in a local transaction:
Commit: At the end of the local transaction context,
the container instructs all unresolved local transactions to commit.
Rollback: (Default) At the end of the local transaction
context, the container instructs all unresolved local transactions to roll
back.
After you define the local transaction settings, you can click Remove to
remove the local transaction settings.
For more information, see the WebSphere Application
Server documentation.