uCosminexus Application Server, Application Setup Guide
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.
From the following attribute files, edit the attribute file that maps to the type of Enterprise Bean that sets the transaction attributes:
Execute the following command to acquire an Enterprise Bean attribute file:
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 |
cjgetappprop MyServer -name adder -type ejb -resname adder/adder_eb -c C:\home\adder_ejb.xml
Execute the following command to apply the values of the Enterprise Bean attribute file:
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 |
cjsetappprop MyServer -name adder -type ejb -resname adder/adder_eb -c C:\home\adder_ejb.xml
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> |
For property settings, reference the following subsections:
The following points specify the transaction attributes and explain the transaction management operations:
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.