We know that a stateless bean is neither activated or passivated, then for what reason the bean has the ejbPassivate() and the ejbActivate() methods? Is it just because it inherits from session bean and the Sessionbean has these methods or some other valid reason ? Hari
posted 14 years ago
Since javax.ejb.SessionBean is the interface for both Stateful and Stateless Session Beans than ejbPassivate() and ejbActivate() must be included. Rest asured that your Application Server should never call these methods on beans marked stateless.