• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sateful vs. Stateless

 
Luay Abdulraheem
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I believe this is the question to ask in order to choose between Stateful or Stateless Session Beans.

True or False !

In an EJB centric application:
If it has both Application Client & Web Client then use Stateful Session Beans to maintain state, but if there is only Web Client, use Stateless Session Beans and HTTP session to maintain state.

Am I right or wrong ?
Thanks All
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
378
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Luay,
Yes. That is a good rule of thumb.
 
Krzysztof Koziol
Ranch Hand
Posts: 133
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my solution I decided to go with SFSB to maintain state even if my application has only a Web Client. What's wrong with that approach?
 
Luay Abdulraheem
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WoooooooooooooooooooooooHoooooooooooooooooooooo... Finally mystery solved !

P.S.: of course in my assignment I can assume anything that is not given or mentioned ..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic