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

CMP Entity bean lifecycle - Order of events

 
Deepti Sabarinath
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi are the following events in the CMP entity bean lifecycle given in the correct order ? If not, what would be the right order ?
A. Client invokes create() on the home interface
B. A new EJBObject is created
C. A bean from the pool is associated with the EJBObject
D. ejbCreate() of the bean is invoked.
E. A primary key is created.
F. A new record is inserted into the database
G. ejbPostCreate() of the bean is invoked.
H. EJB Object reference is returned to the client.
Please help me with order of the following set of events also.
A. Client calls remove() on the EJB home
B. ejbRemove() is invoked on the bean
C. The bean data is removed from the database
D. The EJB Object of the bean is invalidated
E. Bean instance enters the pooled state
-thanks
deepti
[ November 01, 2003: Message edited by: Deepti Sabarinath ]
 
Deepti Sabarinath
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi can someone please help with my query.
I'll be taking the exam soon.
Thanks in advance
Deepti
 
Deepti Sabarinath
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello
I posted my above query two times, but no one has helped me with it so far.
What I wanted to know mainly is which event takes place first - is it the EJBObject getting created and associated with the bean or is it the call to ejbCreate. According to Monson Hafel's book, the EJBObject is created, associated with the bean and then ejbCreate is called. But in this post http://www.coderanch.com/t/143854/po/certification/ICE-CMP-entity-bean-life I read that it happens only after database insertion. Which is correct ?
Can someone please help me with this ?
Thanks
deepti
[ November 12, 2003: Message edited by: Deepti Sabarinath ]
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic