Class JCSServletContextListener

java.lang.Object
org.apache.commons.jcs3.utils.servlet.JCSServletContextListener
All Implemented Interfaces:
EventListener, ServletContextListener

If you add this to the context listeners section of your web.xml file, this will shutdown JCS gracefully.

Add the following to the top of your web.xml file.

  <listener>
  <listener-class>
  org.apache.commons.jcs3.utils.servlet.JCSServletContextListener
  </listener-class>
  </listener>