File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
Don't get me started about those stupid light bulbs.
 
subject: EHCache and Hibernate
 
Similar Threads
Olympic 2008
Is India on the right track of Development?
Spring Framework and Hibernate
Hibernate Tool custom template
How to persist an Object