• Post Reply Bookmark Topic Watch Topic
  • New Topic

passivate and activate in SLSB

 
Hari babu
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!