hibernate.cache.provider_class=org.hibernate.cache.EhCacheProvider
But this way you will get some warning log message like:
To avoid this warning consider using the CacheManager factory methods to create a singleton CacheManager or specifying a separate ehcache configuration (ehcache.xml) for each CacheManager instance.
To eliminate that, you can simply change the cache provider class to:
hibernate.cache.provider_class=net.sf.ehcache.hibernate.SingletonEhCacheProvider
Ref: http://ehcache.sourceforge.net/documentation/hibernate.html
No comments:
Post a Comment