org.jboss.test.testbeancluster.bean
Class StatefulSessionBean

java.lang.Object
  extended byorg.jboss.test.testbean.bean.StatefulSessionBean (src) 
      extended byorg.jboss.test.testbeancluster.bean.StatefulSessionBean
All Implemented Interfaces:
EnterpriseBean (src) , java.io.Serializable, SessionBean (src)

public class StatefulSessionBean
extends StatefulSessionBean (src)

See Also:
Serialized Form

Field Summary
 java.rmi.dgc.VMID myId
           
 
Fields inherited from class org.jboss.test.testbean.bean.StatefulSessionBean (src)
log, name
 
Constructor Summary
StatefulSessionBean()
           
 
Method Summary
 void ejbActivate()
          The activate method is called when the instance is activated from its "passive" state.
 void ejbCreate(java.lang.String name)
           
 void ejbPassivate()
          The passivate method is called before the instance enters the "passive" state.
 NodeAnswer (src) getNodeState()
           
 void setName(java.lang.String name)
           
 void setNameOnlyOnNode(java.lang.String name, java.rmi.dgc.VMID node)
           
 
Methods inherited from class org.jboss.test.testbean.bean.StatefulSessionBean (src)
callBusinessMethodA, callBusinessMethodB, callBusinessMethodB, ejbCreate, ejbCreate, ejbCreateMETHOD, ejbRemove, setSessionContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myId

public transient java.rmi.dgc.VMID myId
Constructor Detail

StatefulSessionBean

public StatefulSessionBean()
Method Detail

ejbCreate

public void ejbCreate(java.lang.String name)
               throws java.rmi.RemoteException,
                      CreateException (src) 
Overrides:
ejbCreate in class StatefulSessionBean (src)
Throws:
java.rmi.RemoteException
CreateException (src)

ejbActivate

public void ejbActivate()
                 throws java.rmi.RemoteException
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 StatefulSessionBean (src)
Throws:
java.rmi.RemoteException

ejbPassivate

public void ejbPassivate()
                  throws java.rmi.RemoteException
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 StatefulSessionBean (src)
Throws:
java.rmi.RemoteException

getNodeState

public NodeAnswer (src)  getNodeState()
                        throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

setName

public void setName(java.lang.String name)
             throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

setNameOnlyOnNode

public void setNameOnlyOnNode(java.lang.String name,
                              java.rmi.dgc.VMID node)
                       throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException