File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

second level cache (ehcache) doubt

 
vipul bondugula
Ranch Hand
Posts: 219
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Vijitha Kumara
Bartender
Posts: 3908
9
Chrome Fedora Hibernate
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may read this for more information.
 
Sagar Bhatia
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • 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
-------------------------------------------------------------------------------------
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic