Hi,

I'm creating an application and trying to figure out how I can
cache data using Servlet in application scope. The info can be
refreshed during a day, and application has to be available 24/7 ( so
it's not possible to restart the servlet and refresh cache). E.g.
product list that can be changed during a day.

Also the problem that I encounter with any approach is that I'll have to
make all access methods synchronized. Since data will change rarely, it
will be very inefficient to make getters synchronized. Did anybody solve
this problem? Is it better to have static class that will serve as cache
instead of putting data in application scope?

Thanks

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to