uCosminexus Application Server, EJB Container Functionality Guide
Depending on the transaction management model of the Enterprise Bean, you might not issue the models for the getUserTransaction method, getRollbackOnly method, or the setRollbackOnly method of the javax.ejb.EJBContext interface. Furthermore, among the methods of the Enterprise Bean, the methods that are operated with the "Unspecified transaction" status according to the EJB specifications cannot be issued. If a method cannot be issued, the EJB container throws java.lang.IllegalStateException. The possibility of issuing each method is described in the following tables.
Table 4-2 Possibility of issuing each transaction management model
javax.ejb.EJBContext method | Possibility of issuing | |
---|---|---|
BMT | CMT | |
getUserTransaction | Y | -- |
getRollbackOnly | -- | -- |
setRollbackOnly | -- | Y |
Table 4-3 Possibility of issuing each EJB method
Type of Beans | Method | Possibility of issuing |
---|---|---|
SessionBean | Constructor | -- |
setSessionContext | -- | |
ejbCreate | -- | |
ejbRemove | -- | |
ejbPassivate | -- | |
ejbActivate | -- | |
Business method | Y | |
afterBegin | Y | |
beforeCompletion | Y | |
afterCompletion | -- | |
EntityBean | Constructor | Y |
setEntityContext | -- | |
unsetEntityContext | -- | |
ejbCreate | Y | |
ejbPostCreate | Y | |
ejbRemove | Y | |
ejbHome | Y | |
ejbPassivate | -- | |
ejbActivate | -- | |
ejbLoad | Y | |
ejbStore | Y | |
Business method | Y | |
Message-driven Bean | Constructor | -- |
ejbCreate | -- | |
onMessage | Y | |
Methods of the message listener | Y | |
ejbRemove | -- |
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.