posted 19 years ago
ok Guys relax.
My question was:
Take an example of Stateless Session Bean. Here, we have ejbCreate(), ejbActivate(), ejbPassivate() and ejbRemove() methods. Are these called the Bean's management methods?
Answer:
Later I got the answer. Yes these are the Bean's management methods meaning that the container can call these methods to indicate what is going on at any instant. When the bean is garbage collected, then the SOP or logic inside the ejbRemove() would be executed.
Also, there are certain callback methods are also available. This is opposite to these management methods. The callback methods are called by the bean, say the methods of EJBContext are all callback methods that bean can ask the container about itself like EJBHome, the security credentials etc.
Thanks,
Guru