Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HttpSession & Session bean  RSS feed

 
suman deb
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why can't we use HttpSession in place of Session bean?
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Suman,

Most of the time you surely can and is even recommended. One reason I can think of is that the HttpSession data gets better replicated around the cluster than the bean session data. There are however situation when one have to use session data within SFSBs. One example could be when your application has RMI clients as well.
Regards.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!