Class StatefulWrapper
java.lang.Object
com.sun.ts.tests.common.ejb.wrappers.StatefulWrapper
- All Implemented Interfaces:
jakarta.ejb.EnterpriseBean
,jakarta.ejb.SessionBean
,Serializable
- Direct Known Subclasses:
StatefulCalleeEJB
Stateful wrapper that provide the bean life cycle methods for a Stateful 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
FieldsModifier and TypeFieldDescriptionprotected TSNamingContext
protected Properties
protected jakarta.ejb.SessionContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
ejbCreate
(Properties props) void
void
ejbPostCreate
(Properties props) void
void
setSessionContext
(jakarta.ejb.SessionContext sc)
-
Field Details
-
nctx
-
sctx
protected jakarta.ejb.SessionContext sctx -
props
-
-
Constructor Details
-
StatefulWrapper
public StatefulWrapper()
-
-
Method Details
-
ejbCreate
- Throws:
jakarta.ejb.CreateException
-
ejbPostCreate
- 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
-