Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Flow of Finder method execution

 
Rahul JG
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Mon Mayor
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic