Product Documentation : Ehcache Operations Guide : Shutting Down Ehcache : ServletContextListener
Ehcache provides a ServletContextListener that shuts down the CacheManager. Use this to shut down Ehcache automatically, when the web application is shut down. To receive notification events, this class must be configured in the deployment descriptor for the web application. To do so, add the following to web.xml in your web application:
Copyright © 2010-2015 Software AG, Darmstadt, Germany.

Product Logo |   Feedback