Looking at the source code for SingletonEhCacheRegionFactory
and AbstractEhcacheRegionFactory
which are responsible for loading the ehcache.xml
, the name of the property is still called net.sf.ehcache.configurationResourceName
(I'm looking at version 4.3 of hibernate-ehcache).
In addition, if the file is called ehcache.xml
and lives in the root of the classpath, then there is no need to specify the property as that filename will be loaded by default. You only need to specify the property if you want a different name - such as ehcache-2.xml
- or if the file does not live in the root of the classpath.
I think you should be safe to leave your property the way it is - or perhaps remove it completely if your ehcache.xml
lives in the root of the classpath (which it appears to do from looking at your config).