Raul Kripalani opened SPR-11178 and commented
The shared=true option instructs the EhCacheManagerFactoryBean that the CacheManager is shared across several contexts.
Unfortunately, the destroy() method is oblivious to this fact and shuts down the CacheManager unconditionally.
EhCacheManagerFactoryBean should keep track of the contexts that are using the CacheManager through a static counter, and only shut down the CacheManager if no more contexts are using it.
Affects: 3.2.5
Referenced from: commits a9605a1