Entering content frame

Procedure documentation Defining Transaction Attributes Locate the document in its SAP Library structure

Use

Transaction attributes specify how the EJB Container will manage transactions for a method when a client invokes the method through the bean’s home or component interface, or when the method is invoked as a result of the arrival of a JMS message.

Procedure

...

       1.      Open the ejb-jar.xml

       2.      From the right-hand pane, choose the Assembly tab

       3.      Select the container-transaction node

       4.      Choose Add.

A dialog box appears.

       5.      Choose the whole enterprise beans or specific methods for which you want to specify transaction attributes.

A container-transaction sub-node appears under the root node. It contains all chosen methods.

If you select a whole enterprise bean, the specified transaction attributes will be applied to all the methods of the enterprise bean.

       6.      Choose the transaction attribute from the corresponding drop-down list in the right-hand pane.

       7.      Enter a short description.

Note

To remove a method from the container-transaction list, select the method and choose Remove.

To remove the whole container-transaction list, select the node and choose Remove.

 

 

Leaving content frame