Meaningless Drivel is fun!*
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 Android Security Essentials Live Lessons this week in the Android 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: 130
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.
Don't get me started about those stupid light bulbs.
subject: caching data in web application
Similar Threads
Hibernate caching- Which caching to use for performance ?
Java Memory
How to write Java Server Pages logic to refresh part of a html page?
caching for SQL queries via Hibernate not HQL
web service