398649 ServletContextListener.contextDestroyed() is not called on ContextHandler unregistration
This commit is contained in:
parent
9c96892870
commit
d74a8c8281
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue