uCosminexus Application Server, EJB Container Functionality Guide
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 |
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.