Local transaction settings are WebSphere® Application Server extensions
to the Enterprise JavaBeans specification.
You can use the deployment descriptor editor to define local transaction
settings.
About this task
To define local transaction settings:
Procedure
- Switch to the Java™ EE
perspective.
- In the Enterprise Explorer view, select the desired EJB
module.
- Right click the deployment descriptor, and select .
- 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.
Results
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.