This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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
It's not a secret anymore!