If no config location is specified, a CacheManager will be configured from "ehcache.xml" in the root of the class path (that is, default EHCache initialization - as defined in the EHCache docs - will apply).
Setting up a separate EhCacheManagerFactoryBean is also advisable when using EhCacheFactoryBean, as it provides a (by default) independent CacheManager instance and cares for proper shutdown of the CacheManager. EhCacheManagerFactoryBean is also necessary for loading EHCache configuration from a non-default config location.
Note: As of Spring 3.0, Spring's EHCache support requires EHCache 1.3 or higher. @author Dmitriy Kopylenko @author Juergen Hoeller @since 1.1.1 @see #setConfigLocation @see #setShared @see EhCacheFactoryBean @see net.sf.ehcache.CacheManager
|
|