Class SampleBean

  • All Implemented Interfaces:
    Serializable, javax.ejb.EnterpriseBean, javax.ejb.SessionBean

    public class SampleBean
    extends Object
    implements javax.ejb.SessionBean
    Test EJB to verify Cargo can deploy EJB JAR to containers which supports it.
    See Also:
    Serialized Form
    • Constructor Detail

      • SampleBean

        public SampleBean()
    • Method Detail

      • ejbCreate

        public void ejbCreate()
                       throws javax.ejb.CreateException
        Throws:
        javax.ejb.CreateException
      • ejbActivate

        public void ejbActivate()
                         throws javax.ejb.EJBException,
                                RemoteException
        Specified by:
        ejbActivate in interface javax.ejb.SessionBean
        Throws:
        javax.ejb.EJBException
        RemoteException
      • ejbPassivate

        public void ejbPassivate()
                          throws javax.ejb.EJBException,
                                 RemoteException
        Specified by:
        ejbPassivate in interface javax.ejb.SessionBean
        Throws:
        javax.ejb.EJBException
        RemoteException
      • ejbRemove

        public void ejbRemove()
                       throws javax.ejb.EJBException,
                              RemoteException
        Specified by:
        ejbRemove in interface javax.ejb.SessionBean
        Throws:
        javax.ejb.EJBException
        RemoteException
      • setSessionContext

        public void setSessionContext​(javax.ejb.SessionContext arg0)
                               throws javax.ejb.EJBException,
                                      RemoteException
        Specified by:
        setSessionContext in interface javax.ejb.SessionBean
        Throws:
        javax.ejb.EJBException
        RemoteException