IntelliJ Java IDE
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Flow of Finder method execution Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Architect Certification (SCEA/OCMJEA)
Reply Bookmark "Flow of Finder method execution" Watch "Flow of Finder method execution" New topic
Author

Flow of Finder method execution

Rahul JG
Ranch Hand

Joined: Jun 05, 2002
Posts: 44
Can anyone explain the flow of finder method execution.
From what I found out, the flow is somewhat like this
EJBLoad -> setEntityContext -> EJBActivate -> EJBLoad -> ...
some business method like getName().
Why is the EJBLoad method called twice?


Rahul
Mon Mayor
Ranch Hand

Joined: Mar 07, 2002
Posts: 40
I guess that the first load is the actual loading of the data into the bean. Since the bean already exists EjbActivate is used to move the bean from the pool to ready state. EjbLoad always follows EjbActivate like ejbstore is called before ejbpassivate. I could be wrong though.
Thanks
MM(SCEA)
 
 
subject: Flow of Finder method execution
 
Threads others viewed
ObjectNotFoundException Vs NoSuchEntityException
when an entity is missing, which exception to throw
ejbLoad question
Mock exam
any hints for this SCEAJ question?
MyEclipse, The Clear Choice