wood burning stoves 2.0*
The moose likes EhCache and the fly likes EHCache and Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Caching » EhCache
Bookmark "EHCache and Hibernate " Watch "EHCache and Hibernate " New topic
Author

EHCache and Hibernate

Sandeep Kumar Jakkaraju
Ranch Hand

Joined: Feb 25, 2009
Posts: 75
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

Joined: Apr 14, 2004
Posts: 10336

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.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Sandeep Kumar Jakkaraju
Ranch Hand

Joined: Feb 25, 2009
Posts: 75
Hello Paul

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

Thanks
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Have a read of the EHCache documentation, your answer is there.
 
jQuery in Action, 2nd edition
 
subject: EHCache and Hibernate