ejbStore() will be called before ejbPassivate() and is used to store the object to persistent database.:There is no connection between ejPassivate() and ejbActivate()methods and ejbLoad() and ejbStore(). The load and store methods can be called any number of times and in any order between the passivte() and activate() methods for retrieving and saving data onto the persistent data store:The container always calls elbLoad() after ejbActivate and ejbStore() after ejbPassivate. The ejb container can call ejbLoad() and ejbStore() at other times also. Basically when the bean is loaded with persistence data, the ejbLoad() is called and ejbStore() is called when the database is loaded or updated with data.
Category:EJB Interview Questions
No comments:
Post a Comment