Comment #69 on issue 288 by [email protected]: FinalizableReferenceQueue
still leaks
http://code.google.com/p/google-guice/issues/detail?id=288
As another workaround that doesn't require to patch guice sources, I've
started to work on a Tomcat Listener that try to shutdown the thread when
the context is destroyed. It also tries to cancel the Expiration Timer
launched by MapMaker.
It looks to work correctly (with both guice 2.0 and 3.0) but I've not
tested it in production yet. The code can easily be ported to other
applications thant tomcat.
The Listener sources are in attachment (note that I removed the package
name from the sources). Maybe it can be a starting point to be integrated
in guice or tomcat, or in a "guice-utils" jar.
Attachments:
GuiceLifecycleListener.java 4.1 KB
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice-dev?hl=en.