uCosminexus Application Server, EJB Container Functionality Guide

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

2.7.4 Defining in cosminexus.xml

The definition of the transaction management method of an Enterprise Bean is specified in the <ejb-jar> tag of cosminexus.xml. The tag to be specified will differ for each type of Enterprise Bean to be set up.

The following table describes the definition of the transaction management method of an Enterprise Bean in cosminexus.xml:

Table 2-20 Definition of the transaction management method of an Enterprise Bean in cosminexus.xml

Items Tag to be specified Setting contents
Selecting the transaction management method of an Enterprise Bean (BMT or CMT)#

In the case of a Session Bean
<session>-<transaction-type> tag

In the case of Message Driven Bean
<message-driven>-<transaction-type> tag
Specify whether to select Bean (BMT) or Container (CMT).
Transaction attributes allocated to the method (for CMT)

In the case of Session Bean or Entity Bean
<assembly-descriptor>-<container-transaction>-<trans-attribute>

In the case of Message Driven Bean
<message-driven>-<container-transaction>-<trans-attribute>
Specify the transaction attributes allocated to the method.

#
When BMT is selected, the transaction must be controlled with an API (such as a method of the javax.transaction.UserTransaction class).

For details on cosminexus.xml, see 2. Application property file (cosminexus.xml) in the uCosminexus Application Server Application and Resource Definition Reference Guide.