Use this task to configure the transactional deployment descriptor attributes associated with an EJB or Web module, to enable a J2EE application to use transactions.
Why and when to perform this task
To set transactional attributes in the deployment descriptor for an application component (enterprise bean or servlet), complete the following steps:
Steps for this task
Note: The ActivitySession option is not supported in the web container.
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.)
If the application uses ActivitySessions, how the container manages transaction boundaries when delegating a method invocation depends on both the Transaction attribute attribute, set here, and the ActivitySession kind attribute, as described in Setting EJB module ActivitySession deployment attributes with the Application Assembly Tool. For more detail about the relationship between these two properties, see Combining transaction and ActivitySession container policies.