Operating Systems: i5/OS
             Personalize the table of contents and search results

 

Defining container transactions for EJB modules

 

Container transaction properties specify how an Enterprise JavaBeans (EJB) container is to manage transaction scopes for the enterprise bean's method invocations. A transaction attribute is mapped to one or more methods. Some container transaction settings are not available for all enterprise beans. Also, some methods are not available for particular transaction settings and beans. These rules have been implemented in the Add Container Transaction wizard based on the EJB 1.1 and EJB 2.x specifications.

 

Overview

To add a container transaction to an enterprise bean:

 

Procedure

  1. In the Project Explorer view of the J2EE perspective, right-click the Deployment Descriptor for your EJB project and select Open With > Deployment Descriptor Editor to open the deployment descriptor editor.

  2. On the Assembly page of the editor, click Add in the Container Transactions section.

  3. Select one or more enterprise beans from the list of beans found.

  4. Select a container transaction type from the following choices:

  5. Select one or more methods elements from the list.

  6. Click Finish.

 

Results

The container transaction is added and displayed in the Container Transactions section, where the container transactions are listed by container transaction type.

 

What to do next

After you define container transactions, you can use the deployment descriptor editor to work with them. Information about the editor can be found in the WebSphere Application Server Express documentation.




}
EJB containers

 

Related tasks


Assembling EJB modules