• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

second level cache (ehcache) doubt

 
Ranch Hand
Posts: 253
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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...?

Thanks,
Vipul Kumar
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You may read this for more information.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://ehcache.org/documentation/configuration/index will be helpful to understand the details of ehcache

Thanks and Regards,
-------------------------------------------------------------------------------------
Sagar Bhatia | sbhatia@infocepts.com | www.infocepts.com
-------------------------------------------------------------------------------------
 
Lasagna is spaghetti flvored cake. Just like this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic