GeeCON Prague 2014*
The moose likes EJB and other Java EE Technologies and the fly likes stateless session bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "stateless session bean" Watch "stateless session bean" New topic
Author

stateless session bean

Geetu Bahl
Greenhorn

Joined: Dec 01, 2004
Posts: 14
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
Marshal

Joined: May 26, 2003
Posts: 30580
    
154

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Geetu Bahl
Greenhorn

Joined: Dec 01, 2004
Posts: 14
Thanks Jeanne
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: stateless session bean