Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Singleton vs ServletContext for storing application scope objects

843842Oct 22 2009 — edited Oct 22 2009
Hi all,

I would like to share some bean objects between all sessions inside the same web application, i.e. all users should access the same beans.
Which is the best way, to store the beans, use a singleton ore put them into the ServletContent vs get/setAttribute?
How about large objects, are there any limitations?

Thanks
Mert

Edited by: mahmut1 on Oct 22, 2009 3:32 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 19 2009
Added on Oct 22 2009
7 comments
973 views