posted 19 years ago
Lifecycle methods are indeed Container callbacks. Basically, anything that's not a business method from the component interface is considered a Container callback. That means anything with "ejb" in front of the name. But you won't need to care about this distinction in terminology for the exam. As long as you know the circumstances under which methods are called on the bean class, you will be fine. The key things are to understand the differences between the behavior of lifecycle methods such as ejbCreate() and ejbRemove() on all of the different bean types. Or things like... which ones are invoked as a direct result of a client invocation. For example, ejbRemove() is called on a stateFUL session bean or entity bean as a direct result of a client call to remove(), but on a stateLESS session bean, the ejbRemove() Container callback is NOT called as a result of a client invocation (but rather because the Container just decided it was time to start killing some beans to shrink the pool size... and when the client calls remove() on a stateLESS bean, the Container just laughs and says, "Do you think I CARE?"
cheers,
kathy