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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidShutdown JCS.voidThis does nothing.
- 
Constructor Details- 
JCSServletContextListenerpublic JCSServletContextListener()
 
- 
- 
Method Details- 
contextInitializedThis does nothing. We don't want to initialize the cache here.- Specified by:
- contextInitializedin interface- ServletContextListener
- See Also:
 
- 
contextDestroyedShutdown JCS.- Specified by:
- contextDestroyedin interface- ServletContextListener
- See Also:
 
 
-