Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

stateless session bean  RSS feed

 
Geetu Bahl
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

My question is , why does a stateless session bean doesn't store state even though it has ejbActivate() and ejbpassivate() methods.

Pleas explain ???

Thanks
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37234
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Geetu,
The main reason is that stateless and stateful session beans share the same interface. Therefore both have to implement the same methods. The only thing that differentiates the two is in the deployment descriptor.

In EJB 3.0 (due out in 2006), we will no longer need to implement these useless methods.
 
Geetu Bahl
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jeanne
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!