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 ]
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.