| |
|
| org.apache.openejb.test.NamedTestCase org.apache.openejb.test.mdb.MdbTestClient org.apache.openejb.test.mdb.BmtMdbAllowedOperationsTests
BmtMdbAllowedOperationsTests | public class BmtMdbAllowedOperationsTests extends MdbTestClient (Code) | | [9] Should be run as the nineth test suite of the BasicStatelessTestClients
=========================================================================
Operations allowed in the methods of a stateless SessionBean with
container-managed transaction demarcation
=========================================================================
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
constructor | -
______________________|__________________________________________________
|
setSessionContext | SessionContext methods:
| - getEJBHome
| JNDI access to java:comp/env
______________________|__________________________________________________
|
ejbCreate | SessionContext methods:
ejbRemove | - getEJBHome
| - getEJBObject
| JNDI access to java:comp/env
______________________|__________________________________________________
|
business method | SessionContext methods:
from remote interface | - getEJBHome
| - getCallerPrincipal
| - getRollbackOnly
| - isCallerInRole
| - setRollbackOnly
| - getEJBObject
| JNDI access to java:comp/env
| Resource manager access
| Enterprise bean access
______________________|__________________________________________________
author: David Blevins author: Richard Monson-Haefel |
BmtMdbAllowedOperationsTests | public BmtMdbAllowedOperationsTests()(Code) | | |
TODO_test03_ejbRemove | public void TODO_test03_ejbRemove()(Code) | |
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
ejbCreate | SessionContext methods:
ejbRemove | - getEJBHome
| - getEJBObject
| - getUserTransaction,
| JNDI access to java:comp/env
______________________|__________________________________________________
|
test01_setSessionContext | public void test01_setSessionContext()(Code) | |
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
dependency injection | MessageDrivenContext methods:lookup
methods (e.g., setMes-|
sageDrivenContext) | JNDI access to java:comp/env
______________________|__________________________________________________
|
test02_ejbCreate | public void test02_ejbCreate()(Code) | |
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
ejbCreate | SessionContext methods:
ejbRemove | - getTimerService
| - lookup
| - getUserTransaction,
| JNDI access to java:comp/env
______________________|__________________________________________________
|
test04_businessMethod | public void test04_businessMethod()(Code) | |
Bean method | Bean method can perform the following operations
______________________|__________________________________________________
|
business method | SessionContext methods:
from remote interface | - getCallerPrincipal
| - getUserTransaction,
| - getTimerService
| - lookup
| JNDI access to java:comp/env
| Resource manager access
| Enterprise bean access
| EntityManagerFactory access
______________________|__________________________________________________
|
|
|
|