• Post Reply Bookmark Topic Watch Topic
  • New Topic

Could I call ejbLoad() AND ejStore?

 
dar
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI ALL.
Could you tell me when are called methods ejbLoad() AND ejStore()?
Are they called on/after some events or periodical time?
Are they called after every time when I call ejbFindXXXX, ejbCreate()?
Could I call these methods in a program code
so: tstRemote ejbInst;
................
ejbinst.ejbLoad();
................
ejbinst.ejbStore();
If I couldn't call ejbinst.ejbStore() then,
What do I have to do when I want update underlying database
with the current instance of the EJB?
It's BMP-EJB.
Thank U for answer.
 
Phil Sharp
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dajac
You do not need to call ejbLoad and ejbStore. The EJB container calls the methods when it deems it appropriate (this may vary between ejb vendors).
You just need to create appropriate methods so that when they are called the appropriate action occurs (load or store).
Hope that helps
Phil
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!