Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Httpsession vs stateful session  RSS feed

 
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!