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

any hints for this SCEAJ question?

 
walter wang
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
------------------------------------------------------------
QUESTION :
What can bring an entity bean instance into the ready state?
POSSIBLE ANSWERS:
* Activation (ANSWERED) (CORRECT)
* Passivation
* ejbCreate/ejbPostCreate (ANSWERED) (CORRECT)
* ejbLoad (CORRECT)
* a finder method
* setEntityContext

Is ejbLoad also a right answer ?
could ejbLoad bring EJB instance into ready mode?
 
Billy JK
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From Monson-Haefel:
"The ejbLoad() and ejbStore() methods, which synchronize the bean instance's state with the database, can be called only when the bean is in the Ready state"
The possible ways a bean transitions from the "pooled" state to the "ready" state described in the book are : via creation, via a query method, via activation.
Hope it helps,
Billy
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic