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
You can configure the deployment attributes of an application by using an assembly tool such as the Application Server Toolkit (AST) or Rational Web Developer.
This topic describes the use of the Application Server Toolkit (AST) to configure the deployment attributes of an application. This task description assumes that you have an EAR file for an application component, that can be deployed in WebSphere Application Server. For more details about assembling applications, see Assembling applications.
To set transactional attributes in the deployment descriptor for an application component (enterprise bean or servlet), complete the following steps:
Steps for this task
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 Container transaction type set in this task, and the ActivitySession kind attribute as described in Configuring ActivitySession deployment attributes for an enterprise JavaBean. For more detail about the relationship between these two properties, see Combining transaction and ActivitySession container policies.
What to do next
After assembling your application, use a systems management tool to deploy the EAR file onto the application server that is to run the application; for example, using the administrative console as described in Deploying and managing applications.Related tasks
Configuring transaction properties for an application server
Developing a component to use transactions
Assembling
applications
Related reference
Combining transaction and ActivitySession container
policies
Using local transactions
Related information
Enterprise JavaBeans
specification
WebSphere Application Server Development Best Practices for Performance
and Scalability