Take an example of Stateless Session Bean. Here, we have ejbCreate(), ejbActivate(), ejbPassivate() and ejbRemove() methods. Are these called the Bean's management methods?
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.
Originally posted by Gurumurthy Ramamurthy: Any Bean...
Those methods aren't applicable for any bean. Stateless session beans will not have their activate/passivate methods called, as they maintain no state necessary to activate/passivate. Also, I think these methods are more commonly known as the "lifecycle" methods.
James Carman, President<br />Carman Consulting, Inc.