This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 218

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: 3816

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
Similar Threads
EHCache not working
Relation between Hibernate Query Cache and Second Level Cache
ehcache.xml file I have in my ejb app is not used
Hibernate second level caching
ehcache1.5 -Can I remove "defaultCache"? Can I have "ehcache.xml" in 2 Proj, where 1 reference other