Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EHCache and Hibernate  RSS feed

 
Sandeep Kumar Jakkaraju
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All

First of all how do I make sure that my Hibernate is using the second level cache.
I am not talking about the configuration in hibernate.properties.

I am talking about the ehcache.xml !!!

Thanks
Sandeep Kumar Jakkaraju
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Enable some logging in EHCache?

Assuming you have configured your SessionFactory to use EHCache and mapped your cacheable classes as such Hibernate will just use it.
 
Sandeep Kumar Jakkaraju
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Paul

How do I enable logging of ehcahe.... can i do it from ehcache.xml

Thanks
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a read of the EHCache documentation, your answer is there.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!