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

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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30586
    
154

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
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3710
    
    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
 
GeeCON Prague 2014
 
subject: stateless session bean