File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and Other Java EE Technologies and the fly likes Could I call ejbLoad() AND ejStore? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » EJB and Other Java EE Technologies
Reply Bookmark "Could I call ejbLoad() AND ejStore?" Watch "Could I call ejbLoad() AND ejStore?" New topic
Author

Could I call ejbLoad() AND ejStore?

dar
Ranch Hand

Joined: Nov 08, 2001
Posts: 45
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

Joined: Nov 08, 2001
Posts: 40
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
 
 
subject: Could I call ejbLoad() AND ejStore?
 
Threads others viewed
question about the entity bean lifecycle
Contradiction in Head First EJB ?
Inconsistent state with seesion bean wrapped entity bean
EJB Load
Entity Bean ejbCreate method
MyEclipse, The Clear Choice