File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes caching data in web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "caching data in web application" Watch "caching data in web application" New topic

caching data in web application

ashish kulkarni
Ranch Hand

Joined: Aug 15, 2002
Posts: 131
I have a web application where in i need to cache data from a database table so improve performance,
what is the best way to do it, i want one common cache like in servlet context, this table as about 10000 records and they are used in some classes for processing logic,
I dont want to cache it in session

Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

10000 seems like an awful lot, but application scope is probably what you are looking for.

A good workman is known by his tools.
I agree. Here's the link:
subject: caching data in web application