Monday, July 26, 2010

[Java] Having Shared Data among servlets

 

I want to have some HashMaps and Lists be shared among the servlets. Some
servlet could follow a sleep and wake cycle, and some will handle request
and end.

two things i can do:

1. Singleton data model (which i m using) with synchyrozied....
2. Some say to save it in the servlet context?

Question is: Can Servlet context can have an object with one million records
of like user profiles? How efficient is this? Please Comment.

Regards

Moeen

[Non-text portions of this message have been removed]

__._,_.___
Recent Activity:
Visit http://aiaiai.com or http://jgame.org for more groups to join.
Java Official Group is created for the following topics: Java 2 Enterprise Edition - J2EE, Java 2 Standard Edition - J2SE, Java 2 Micro Edition - J2ME, XML, XSL, XSD, XPATH, Web Services, Jini, JXTA for all type of Java Geeks.
Whoever posts spam / ads / job related message will be BANNED IMMEDIATELY
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.


Get great advice about dogs and cats. Visit the Dog & Cat Answers Center.


Hobbies & Activities Zone: Find others who share your passions! Explore new interests.

.

__,_._,___

No comments:

Post a Comment