| 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: 4967
|
|
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
|
Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
|
 |
 |
|
|
subject: Why Stateless session beans does't maintaining any conversational state?
|
|
|