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 failurecaused by a system-level error. exception: RemoteException - This exception is defined in the methodsignature to provide backward compatibility for enterprise beans written for the EJB 1.0 specification. Enterprise beans written for the EJB 1.1 specification should throw thejavax.ejb.EJBException instead of this exception.Enterprise beans written for the EJB2.0 and higher specificationsmust throw the javax.ejb.EJBException instead of this exception. |