DefaultGuiceModule installs a shutdown hook to shut down a thread pool
----------------------------------------------------------------------

                 Key: SHINDIG-1439
                 URL: https://issues.apache.org/jira/browse/SHINDIG-1439
             Project: Shindig
          Issue Type: Bug
          Components: Java
    Affects Versions: 2.0.0, 1.1-BETA5
            Reporter: Pablo Gra\~na
            Priority: Minor


The shutdown hook holds a reference to the shutdown thread, keeping the webapp 
classloader always alive.

Anyway, a shutdown hook will only cleanup resources when the jvm ends. And you 
probably want the cleanup to happen when the web application is undeployed.

That is why I think the best option is to use a context loader listener: add a 
shutdown operation to DefaultGuiceModule and call it in from 
GuiceServletContextListener.contextDestroyed.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to