Hello Friends, A simple problem in lifecycle of ejb(session/entity) . My doubt is which is invoked first by the container, when a client sents a request 1. ejbCreate() method of the bean or 2. Instatitation of ejbObject this question was asked in an interview
Prakash Dwivedi (SCJP2, SCWCD, SCBCD)
"Failure is not when you fall down, Its only when you don't get up again"
posted 14 years ago
Hi, EJBObject is 1st created and then depending whether Bean instance is available or not ejbCreate() is called.Client can never access the bean directly, it makes calls on EjbOject. Refer to Mastering EJB by Ed Roman for further details. HTH, Piyush
"A scientist is not person who gives right answers but a person who asks right questions"