Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

httpsession objects and stateful session beans  RSS feed

 
srinivas k
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
what is the difference between the httpsession object and a stateful session bean , we can implement the same functionality what a stateful session bean provides then what is the need for a statefull session bean
thanks in advance :roll:
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HttpSession is only available to web clients. If you want your Application to maintain session state, regardless of client-type, then Stateful Session Beans are the way to go.
Another thing that is typically overlooked is that additional level of transaction control provided by Stateful Session Beans implementing the SessionSynchronization interface.
That said, in general I tend to stay away from SFSBs. The majority of J2EE Applications only have a web client and HttpSession objects are easier to work with.
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
srinivas k,
Thanks for joining JavaRanch, but could you take a quick look at the naming policy and edit your public display name accordingly.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!