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.
exception: EJBException - - Thrown by the method to indicate a failure caused by a system-level error. exception: java.rmi.RemoteException - - This exception is defined in the method signature to providebackward compatibility for enterprise beans written for the EJB 1.0 specification. Enterprise beanswritten for the EJB 1.1 specification should throw the javax.ejb.EJBException instead of this exception.Enterprise beans written for the EJB2.0 and higher specifications must throw the javax.ejb.EJBExceptioninstead of this exception. |