uCosminexus Application Server, Application Setup Guide

[Contents][Index][Back][Next]

9.5 Defining transaction attributes

You define the method of managing transactions by using a container.

You can specify the transaction attributes for each Enterprise Bean, interface, and method. When the transaction attributes are not specified, the attributes specified for the upper level become applicable.

Organization of this section
(1) Attribute file to be edited
(2) Acquiring the attribute file to be edited and setting the attributes
(3) Attribute settings to be edited
(4) Notes

(1) Attribute file to be edited

From the following attribute files, edit the attribute file that maps to the type of Enterprise Bean that sets the transaction attributes:

(2) Acquiring the attribute file to be edited and setting the attributes

Acquiring the attribute file

Execute the following command to acquire an Enterprise Bean attribute file:

Execution format
 
cjgetappprop [server-name] [-nameserver provider-URL] -name J2EE application-name -type ejb -resname EJB-JAR-display-name/Enterprise-Bean-display-name -c path-of-the-Enterprise-Bean-attribute file
 

Example of execution
cjgetappprop MyServer -name adder -type ejb -resname adder/adder_eb -c C:\home\adder_ejb.xml
 
Setting the attributes

Execute the following command to apply the values of the Enterprise Bean attribute file:

Execution format
 
cjsetappprop [server-name] [-nameserver provider-URL] -name J2EE application-name -type ejb -resname EJB-JAR-display-name/Enterprise-Bean-display-name -c path-of-the-Enterprise-Bean-attribute-file
 

Example of execution
cjsetappprop MyServer -name adder -type ejb -resname adder/adder_eb -c C:\home\adder_ejb.xml
 

(3) Attribute settings to be edited

The following table describes the settings for the container transaction attributes (<container-transaction>):

Items Mandatory Corresponding tags
Description O <description>
Method description O <method> - <description>
Interface classification O <method> - <method-intf>
Method name O <method> - <method-name>
Transaction attribute Y <trans-attribute>

Legend:
Y: Mandatory
O: Optional

For property settings, reference the following subsections:

The following points specify the transaction attributes and explain the transaction management operations:

(4) Notes