Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Dhineshkumar raj
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic