First page Back Continue Last page Graphics

Continuation of Notes


Notes:

The taxi analogy illustrates an important point about passivated entity beans: they cannot contain state data that is not persistent. If the entity bean class has instance variables containing state data, that data will be lost when the bean is passivated unless the data is written to the database. It would be as if you left your cell phone in the taxi and it were not dropped off with your bags.
The ejbPassivate( ) & ejbActivate( ) methods of EntityBean are called when the bean instance is swapped into or out of the instance pool. A given entity bean may need to use these methods in the same way as a session bean would.