Class StatelessWrapper
java.lang.Object
com.sun.ts.tests.common.ejb.wrappers.StatelessWrapper
- All Implemented Interfaces:
jakarta.ejb.EnterpriseBean
,jakarta.ejb.SessionBean
,Serializable
Stateless wrapper that provide the bean life cycle methods for a Stateless Session bean. This class is intended to be
subclassed by the final entity bean class that will provide the test logic (business methods).
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
void
initLogging
(Properties props) Initialize TS logging.void
setSessionContext
(jakarta.ejb.SessionContext sc)
-
Field Details
-
nctx
-
sctx
protected jakarta.ejb.SessionContext sctx
-
-
Constructor Details
-
StatelessWrapper
public StatelessWrapper()
-
-
Method Details
-
initLogging
Initialize TS logging.- Parameters:
props
- TS properties need by TestUtil
-
ejbCreate
public void ejbCreate() throws jakarta.ejb.CreateException- Throws:
jakarta.ejb.CreateException
-
ejbPostCreate
public void ejbPostCreate() throws jakarta.ejb.CreateException- Throws:
jakarta.ejb.CreateException
-
setSessionContext
public void setSessionContext(jakarta.ejb.SessionContext sc) - Specified by:
setSessionContext
in interfacejakarta.ejb.SessionBean
-
ejbRemove
public void ejbRemove()- Specified by:
ejbRemove
in interfacejakarta.ejb.SessionBean
-
ejbActivate
public void ejbActivate()- Specified by:
ejbActivate
in interfacejakarta.ejb.SessionBean
-
ejbPassivate
public void ejbPassivate()- Specified by:
ejbPassivate
in interfacejakarta.ejb.SessionBean
-