This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: EHCache and Hibernate
 
It's not a secret anymore!