Entity Beans / Container Perspective - III
ejbActivate() method is invoked by the container to inform the bean instance that an EJB Object is associated with this instance. The container will deliver business calls after it invokes the ejbLoad() to make sure that the instance is synchronized with database.
ejbPassivate() method is invoked by the container to inform the bean instance that the associated EJB Object is about to be disassociated from this instance. Container calls ejbStore() method before calling this method to make sure that the bean instance updates its possibly cached state to the database.
ejbRemove() method is invoked by the container to inform the instance that the EJB Object will be removed.