Win a copy of High Performance Python for Data Analytics this week in the Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

CMP Entity bean lifecycle - Order of events

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 https://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 ]
 
Power corrupts. Absolute power xxxxxxxxxxxxxxxx is kinda neat.
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic