aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Why Stateless session beans does't maintaining any conversational state? 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 "Why Stateless session beans does Watch "Why Stateless session beans does New topic
Author

Why Stateless session beans does't maintaining any conversational state?

Dhineshkumar raj
Greenhorn

Joined: Aug 06, 2007
Posts: 28
Hi,

can any one clear my doubt.

Why Stateless session beans does't maintaining any conversational state. .
Is there any reason for this???

Regards
Dhinesh Kumar R
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
If you need to maintain state, then stateful session bean are available.

Stateless beans are a lightweight version of stateful beans. These stateless beans are usually more appropriate than stateful beans.


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

Stateless session beans are pooled, and when needed, any instance can be pulled from the pool, as they are identical. If they had conversational state with the client, not each instance would be identical.

Use stateful session beans if you need to maintain state. Maybe even just the HttpSession if you are developing a Servlet/JSP application.

-Cameron McKenzie
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Why Stateless session beans does't maintaining any conversational state?