This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Stateful Bean as a data storege dump
 
Similar Threads
State of Stateful Session Beans
Is session is a strange thing?
A Very Basic Question About EJB...
Client State Between Two Web Apps
Stateless Bean Calling Stateful Bean