I have this XML Ehcache configuration:
<ehcache> <defaultCache maxElementsInMemory="10000" eternal="false" timeToIdleSeconds="120" timeToLiveSeconds="120" overflowToDisk="false" diskSpoolBufferSizeMB="30" diskPersistent="false" diskExpiryThreadIntervalSeconds="120" memoryStoreEvictionPolicy="LRU" /> </ehcache>
And also I have packages with entities (about 150). If I deploy my application on a tomcat server, there are a lot of WARN messages in the log:
2015-04-29 11: 59: 02,712 [RMI TCP Connection (3) -127.0.0.1] WARN org.hibernate.cache.ehcache.AbstractEhcacheRegionFactory - HHH020003: Could not find a specific ehcache configuration for the cache named [Com.company. project.entity.package.MyEntity]; using default values.
I can write a configuration for each object -
<cache name="com.company.project.entity.package.MyEntity" maxEntriesLocalHeap="50" eternal="false" overflowToDisk="false" timeToLiveSeconds="120"> <persistence strategy="localTempSwap"/> </cache>
But this way my configuration file gets too large (1600 lines). I think there is another way to set the default configuration for each object and kill the warnings, but I do not know how to do this. If anyone knows, please help. Many thanks.
java logging hibernate configuration ehcache
degr
source share