• Post Reply Bookmark Topic Watch Topic
  • New Topic

What are the advantages stateful session beans takes over than HttpSession

 
Dhineshkumar raj
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

We can use HttpSession to maintain the conversational state with the client.
Then why we need to go for stateful session beans to maintain conversational state with the client.

What are advantages we can have while using stateful session beans ratherthan HttpSession???.

Regards
Dhinesh kumar R
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In some specific cases, it would make sense to use both HttpSessions and stateful session beans, but if you have a web client, then HttpSession objects should usually be used to store session state data. For non-web systems, use stateful session beans to store session state data, this is what they were designed for.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!