File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EhCache and the fly likes second level cache (ehcache) doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Caching » EhCache
Bookmark "second level cache (ehcache) doubt" Watch "second level cache (ehcache) doubt" New topic

second level cache (ehcache) doubt

vipul bondugula
Ranch Hand

Joined: Oct 14, 2010
Posts: 219

I am novice to hibernate. currently iam working on how to enable second level caching. I am using ehcache that is bundled with my hibernate 3.2.5 version.

I configured ehcache in hibernate.cfg.xml file as follows:

these are the configuration i made. I am not sure whether second level cache is working or not. i googled and found ehcache.xml file has to be writter.

i do not understand what is the use of ehcache.xml file and what should be written into it...Is it mandatory to write?

Another One: Do hibernate default disables second level cache...?

Vipul Kumar

Vipul Kumar
Vijitha Kumara

Joined: Mar 24, 2008
Posts: 3902

You may read this for more information.

[How to ask questions] [Twitter]
Sagar Bhatia

Joined: Mar 06, 2012
Posts: 2 will be helpful to understand the details of ehcache

Thanks and Regards,
Sagar Bhatia | |
I agree. Here's the link:
subject: second level cache (ehcache) doubt
It's not a secret anymore!