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>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Shutdown JCS.void
This does nothing.
-
Constructor Details
-
JCSServletContextListener
public JCSServletContextListener()
-
-
Method Details
-
contextInitialized
This does nothing. We don't want to initialize the cache here.- Specified by:
contextInitialized
in interfaceServletContextListener
- See Also:
-
contextDestroyed
Shutdown JCS.- Specified by:
contextDestroyed
in interfaceServletContextListener
- See Also:
-