org.jboss.test.cts.ejb
Class BMTStatefulSessionBean

java.lang.Object
  extended byorg.jboss.test.util.ejb.EnterpriseSupport (src) 
      extended byorg.jboss.test.util.ejb.SessionSupport (src) 
          extended byorg.jboss.test.cts.ejb.BMTStatefulSessionBean
All Implemented Interfaces:
EnterpriseBean (src) , java.io.Serializable, SessionBean (src)

public class BMTStatefulSessionBean
extends SessionSupport (src)

The stateful session ejb implementation

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.test.util.ejb.SessionSupport (src)
sessionCtx
 
Constructor Summary
BMTStatefulSessionBean()
           
 
Method Summary
 void createLocalEntity(AccountPK (src)  pk, java.lang.String personsName)
           
 void createSessionHandle()
           
 void createSessionRef()
           
 void createStatefulSessionHandle(java.lang.String testName)
           
 void decCounter()
           
 void ejbActivate()
          The activate method is called when the instance is activated from its "passive" state.
 void ejbCreate(java.lang.String testName)
           
 void ejbCreateAlt(java.lang.String testName)
           
 void ejbPassivate()
          The passivate method is called before the instance enters the "passive" state.
 BeanContextInfo (src) getBeanContextInfo()
           
 int getCounter()
           
 Handle (src) getHandle()
           
 java.lang.String getTestName()
           
 boolean getWasActivated()
           
 boolean getWasPassivated()
           
 void incCounter()
           
 void loopbackTest()
           
 void loopbackTest(EJBObject (src)  obj)
           
 java.lang.String method1(java.lang.String msg)
           
 void ping()
           
 java.lang.String readAndRemoveEntity()
           
 void setCounter(int value)
           
 void sleep(long wait)
           
 java.lang.String useSessionHandle(java.lang.String arg)
           
 java.lang.String useSessionRef()
           
 void useStatefulSessionHandle()
           
 
Methods inherited from class org.jboss.test.util.ejb.SessionSupport (src)
ejbCreate, ejbRemove, setSessionContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BMTStatefulSessionBean

public BMTStatefulSessionBean()
Method Detail

ejbCreate

public void ejbCreate(java.lang.String testName)

ejbCreateAlt

public void ejbCreateAlt(java.lang.String testName)

ejbActivate

public void ejbActivate()
Description copied from interface: SessionBean (src)

The activate method is called when the instance is activated from its "passive" state. The instance should acquire any resource that it has released earlier in the ejbPassivate() method.

This method is called with no transaction context.

Specified by:
ejbActivate in interface SessionBean (src)
Overrides:
ejbActivate in class SessionSupport (src)

ejbPassivate

public void ejbPassivate()
Description copied from interface: SessionBean (src)

The passivate method is called before the instance enters the "passive" state. The instance should release any resources that it can re-acquire later in the ejbActivate() method.

After the passivate method completes, the instance must be in a state that allows the container to use the Java Serialization protocol to externalize and store away the instance's state.

This method is called with no transaction context.

Specified by:
ejbPassivate in interface SessionBean (src)
Overrides:
ejbPassivate in class SessionSupport (src)

getTestName

public java.lang.String getTestName()

method1

public java.lang.String method1(java.lang.String msg)

incCounter

public void incCounter()

decCounter

public void decCounter()

getCounter

public int getCounter()

setCounter

public void setCounter(int value)

getBeanContextInfo

public BeanContextInfo (src)  getBeanContextInfo()
                                   throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

loopbackTest

public void loopbackTest()
                  throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

loopbackTest

public void loopbackTest(EJBObject (src)  obj)
                  throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

ping

public void ping()

sleep

public void sleep(long wait)

getWasActivated

public boolean getWasActivated()

getWasPassivated

public boolean getWasPassivated()

createLocalEntity

public void createLocalEntity(AccountPK (src)  pk,
                              java.lang.String personsName)
                       throws CreateException (src) 
Throws:
CreateException (src)

readAndRemoveEntity

public java.lang.String readAndRemoveEntity()
                                     throws RemoveException (src) 
Throws:
RemoveException (src)

createSessionHandle

public void createSessionHandle()

useSessionHandle

public java.lang.String useSessionHandle(java.lang.String arg)

createStatefulSessionHandle

public void createStatefulSessionHandle(java.lang.String testName)

useStatefulSessionHandle

public void useStatefulSessionHandle()

createSessionRef

public void createSessionRef()
                      throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

useSessionRef

public java.lang.String useSessionRef()
                               throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getHandle

public Handle (src)  getHandle()