398649 ServletContextListener.contextDestroyed() is not called on ContextHandler unregistration

This commit is contained in:
Greg Wilkins 2013-02-15 11:19:04 +11:00
parent 9c96892870
commit d74a8c8281
1 changed files with 2 additions and 5 deletions

View File

@ -49,20 +49,17 @@ public class Activator implements BundleActivator
public void start(final BundleContext context) throws Exception
{
ContextHandler ch = new ContextHandler();
ch.addEventListener(new ServletContextListener () {
@Override
ch.addEventListener(new ServletContextListener ()
{
public void contextInitialized(ServletContextEvent sce)
{
System.err.println("Context is initialized");
}
@Override
public void contextDestroyed(ServletContextEvent sce)
{
System.err.println("CONTEXT IS DESTROYED!");
}
});
Dictionary props = new Hashtable();
props.put("contextPath","/acme");