Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB Life Cycle in SCEA

 
Cheers Prasad
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
01. When does an Entity Bean transition from Pooled State to Ready state
 a. when create() is invoked on EJBHome
 b. when a find method is invoked on EJBHome
 c. when a BEan is activated by the container
 d. when a BEan is passivated by the container
Given Answer : a,b,c
When Find method invoked on entity bean whether entity bean gets transitioned from pooled state to ready state?
 
E. Messing
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What i think they mean is when a find method is invoked on the EJBHome, and there is a resault (one or many) the EJBHome prepare an Entity bean - adding it the primrary key data, and calling an ejbLoad - to use the prim key to get all the data from the DB. Then it connects an EJBObject to it , and send it to the client. Now the client has a reference to the bean methods, and the bean is in the "Ready" state.
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would say the answers are only a, c
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic