Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Stateful Bean as a data storege dump

 
Devesh H Rao
Ranch Hand
Posts: 687
Hibernate jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i would like to know what is the pros and cons of dumping my client related data in a stateful bean linked to a particular session of a client insted of storing them in the session object.
i would also like to know how heavy is a stateful ben for the app server to handle.
 
Phil Sharp
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably depends upon your application, its reliability\performance requirements and the rest of your solution.
Ideally you would probably want to store presentation state in the HttpSession and business state in an EJB.
Following is a link to a discussion where the issues were aired far more knowledgeably than I can do:
http://www.theserverside.com/discussion/thread.jsp?thread_id=552
Hope it helps
Phil
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic