uCosminexus Application Server, EJB Container Functionality Guide

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

2.17.2 Handling transactions in asynchronous invocation

You can specify only the following transaction attributes in the asynchronous invocation of a Session Bean:

However, the transaction context of the client, which is the source of invocation, is not transmitted in the asynchronous method. The application developer needs to handle it as if it does not have the transmitted transaction context. For example, even if you define the Required attribute in the asynchronous method, it is processed in the same way as when the RequiresNew attribute is specified in an EJB container.

The following table describes the transactions that correspond to the specification of the transaction attribute in an asynchronous method specified on the client machine.

Table 2-57 Transactions that correspond to the specification of transaction attributes in asynchronous methods specified on the client machine

Transaction attributes specified in methods Transaction on the client machine Transaction associated with asynchronous method
NOT_SUPPORTED None None
T1 None
REQUIRED None T2
T1 T2
REQUIRES_NEW None T2
T1 T2
SUPPORTS None None
T1 None
NEVER None None
T1 None
MANDATORY None Error
T1 Error

Legend:
None: No transaction is specified or no transaction
T1: Transaction set by the invocation source client
T2: New transaction which is started by an EJB container