Closed
Description
Michael Russo opened SPR-11680 and commented
EhCacheCacheManager should implement and register a destroy method that calls cacheManager.shutdown(), which should be called when EhCacheCacheManager bean is destroyed by Spring container.
When using XML config, the common practice is to use the EhCacheManagerFactoryBean, which happens to implement DisposableBean and calls cacheManager.shutdown() as expected.
Affects: 4.0.3
Issue Links:
- Infer "shutdown()" as destroy method for convenient EHCache setup using @Bean [SPR-9713] #14347 Infer "shutdown()" as destroy method for convenient EHCache setup using
@Bean