org.jboss.test.testbeancluster.bean
Class StatefulSessionBean
java.lang.Object
org.jboss.test.testbean.bean.StatefulSessionBean (src)
org.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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myId
public transient java.rmi.dgc.VMID myId
StatefulSessionBean
public StatefulSessionBean()
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