uCosminexus Application Server, EJB Container Functionality Guide
This subsection describes the precautions to be taken when implementing a Stateful Session Bean.
Do not use the same Session Bean as a Stateful Session Bean and Stateless Session Bean in the same J2EE application.
If a system exception occurs during the beforeCompletion and afterCompletion method of SessionSynchronization, the instances of the corresponding Session Bean will not be destroyed in the EJB container.
The setSessionContext method of the Stateful Session Bean is used for invoking the begin method of javax.transaction.UserTransaction. However, according to the EJB specifications, you cannot use this method after invocation. Do not invoke the begin method of javax.transaction.UserTransaction.
When you invoke another Enterprise Bean from the afterCompletion method of the Stateful Session Bean, the following operation will be performed depending on the operation mode of the J2EE server mode:
According to the EJB specifications, you cannot invoke another Enterprise Bean from the afterCompletion method of the Stateful Session Bean. Do not invoke another Enterprise Bean.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.