The conversational state of a STATEFUL session object is defined as the session bean instance�s field values, plus the transitive closure of the objects from the instance�s fields reached by following Java object references.
In advanced cases, a session object�s conversational state may contain open resources, such as open sockets and open database cursors. A container cannot retain such open resources when a session bean instance is passivated. A developer of such a session bean must close and open the resources in the ejbPassivate and ejbActivate notifications.
The Bean Provider is required to ensure that the ejbPassivate method leaves the instance fields ready to be serialized by the Container.
The objects that are assigned to the instance�s non-transient fields after the ejbPassivate method completes must be one of the ...