wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Stateful Bean as a data storege dump Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Stateful Bean as a data storege dump" Watch "Stateful Bean as a data storege dump" New topic
Author

Stateful Bean as a data storege dump

Devesh H Rao
Ranch Hand

Joined: Feb 09, 2002
Posts: 687

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

Joined: Nov 08, 2001
Posts: 40
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
 
Don't get me started about those stupid light bulbs.
 
subject: Stateful Bean as a data storege dump
 
Similar Threads
A Very Basic Question About EJB...
State of Stateful Session Beans
Stateless Bean Calling Stateful Bean
Client State Between Two Web Apps
Is session is a strange thing?