Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Http SEssion VS Session Bean  RSS feed

 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Application is a read only application and does not have any updates. The data read is large volume data for display. Can anyone suggest me a good method to store all the returned values for future usage (any trade offs between storing them as http session object or creating a session bean and storin in session object) ???


Reference Website
http://www.sys-con.com/weblogic/article.cfm?id=101
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Application is a read only application and does not have any updates


No point in using SFSB.
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HttpSession is basically be used to store data objects.

Session bean is mainly be used for managing workflow.

Thus, if your purpose aim to store data, you can simply use HttpSession. If you need to have some operations (workflow), you will then need Session bean.

Stateful or Stateless simply depends on whether you need to store the state.

For example, if you just wanna to get some data or update data inside the DB, you can use SLSB, as any requests can make retrieve or update.

But if the retrieval requires states, like a list of 1000 records, but only 100 will be shown each time, you may then need to store which page is currently displayed. Thus, you may need to store this state in SFSB.

Nick
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for all answer.
 
Alexandru Popescu
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think the usage of the HttpSession is good for
large volume data
. I would rather use a cache mechanism (there are lots out there).
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would rather use a cache mechanism (there are lots out there).



How to use Cache Mechanism ???
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!