Class StatelessWrapper

java.lang.Object
com.sun.ts.tests.common.ejb.wrappers.StatelessWrapper
All Implemented Interfaces:
jakarta.ejb.EnterpriseBean, jakarta.ejb.SessionBean, Serializable

public class StatelessWrapper extends Object implements jakarta.ejb.SessionBean
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 Details

    • nctx

      protected TSNamingContext nctx
    • sctx

      protected jakarta.ejb.SessionContext sctx
  • Constructor Details

    • StatelessWrapper

      public StatelessWrapper()
  • Method Details

    • initLogging

      public void initLogging(Properties props)
      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 interface jakarta.ejb.SessionBean
    • ejbRemove

      public void ejbRemove()
      Specified by:
      ejbRemove in interface jakarta.ejb.SessionBean
    • ejbActivate

      public void ejbActivate()
      Specified by:
      ejbActivate in interface jakarta.ejb.SessionBean
    • ejbPassivate

      public void ejbPassivate()
      Specified by:
      ejbPassivate in interface jakarta.ejb.SessionBean