Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Httpsession vs stateful session

 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
whats the diff b/w storing data in session with that of SFSB
thanx in adv
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The main difference is that the HttpSession is tied to the Web Tier, while a Stateful Session Bean is tied to the EJB Tier. Therefore the Stateful Session Bean could be used to store state for any type of client, but the HttpSession can only store state for a web client.
I rarely find the need for Stateful Session Beans unless I need more transactional control and I am going to implement the SessionSynchronization.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!