org.codehaus.cargo.sample.testdata.ejb
Class SampleBean

java.lang.Object
  extended by org.codehaus.cargo.sample.testdata.ejb.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.

Version:
$Id: SampleBean.java 766 2005-12-28 12:17:23Z vmassol $
See Also:
Serialized Form

Constructor Summary
SampleBean()
           
 
Method Summary
 void ejbActivate()
           
 void ejbCreate()
           
 void ejbPassivate()
           
 void ejbRemove()
           
 boolean isWorking()
           
 void setSessionContext(javax.ejb.SessionContext arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleBean

public SampleBean()
Method Detail

isWorking

public boolean isWorking()
                  throws RemoteException
Throws:
RemoteException

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


Copyright © 2004-2012 Codehaus. All Rights Reserved.