Meaningless Drivel is fun!
The moose likes Object Relational Mapping and the fly likes Hibernate Read-Only Cache Query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate Read-Only Cache Query" Watch "Hibernate Read-Only Cache Query" New topic

Hibernate Read-Only Cache Query

Ragav Baskaran
Ranch Hand

Joined: Nov 04, 2007
Posts: 36
Hi All,

I'm a new bie to hibernate caching. I need youe help in understanding the cache expiration criteria.

In my application i have lot of configurational data's (read only data and updated very rarely) in a table and i would like to use "Read-only" caching strategy to cache the configurational data's.

I read about an article of hibernate caching and it mainly talked about the types of caching strategies like Read-only, Read-Write, Transaction etc., like when to use what.

What i like to know here is the cache expiration criteria's for each caching strategies ?
Where to configure the cache expiration criteria's for different cache providers like ehcache, oscache etc?

Can you please point me to any article which can explain this.

Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Unfortunately, the configuration of all that is vendor specific. Each caching product does it a little bit differently. ehcache is done in the ehcache.xml file for defining your cache regions. I recommend reading the cache vendor product's documentation that you choose. That would be the easiest to me.

Good Luck


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Hibernate Read-Only Cache Query
It's not a secret anymore!