File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
My company uses a Process Driven framework ,An Stateless Session is used in the framework,

My question here is

How the stateless session bean handle many user since it does not have track of each user's session?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29261
    
140

Jacob,
The stateless session bean gets all the data it needs passed in. The data is likely stored in an HttpSession.


[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
jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
Thanks for reply.Statefull session bean save the data within itself ?
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3697
    
    5

Originally posted by jacob deiter:
Thanks for reply.Statefull session bean save the data within itself ?


Sort of, they maintain information between server calls. Think of it as a service that you start and maintain communication with throughout many customer interactions. It's not necessarily a bad thing, most people just have found they'd rather perform the same function with HttpSessions and stateless session beans since it makes the code more usable in the end.
[ August 27, 2008: Message edited by: Scott Selikoff ]

My Blog: Down Home Country Coding with Scott Selikoff
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: stateless session bean
 
Similar Threads
Retrofitting AOP into a Session Bean
Spring EJB Source Code
Session facade
Exception while deploying the app: Invalid ejb jar: it contains zero ejb.
NoClassDefFoundError