• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

second level cache (ehcache) doubt

 
Ranch Hand
Posts: 252
  • 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: 4108
72
Hibernate Fedora Chrome
  • 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
-------------------------------------------------------------------------------------
 
I was born with webbed fish toes. This tiny ad is my only friend:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic