• 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
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!