• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

httpsession objects and stateful session beans

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic