WAR == single classloader was: Benefits of activeReferenceQueue
Florian Weimer
fweimer at redhat.com
Tue Aug 5 13:56:20 UTC 2014
On 08/04/2014 03:42 PM, David M. Lloyd wrote:
> Servlets are EE components, and as such, you should be able to establish
> a @PreDestroy interceptor, which was introduced for exactly this kind of
> purpose (cleanup and reclaiming of per-component resources). Also
> servlets have a destroy method IIRC.
>
> IOW all of this seems unnecessary.
I wasn't sure if there was precedent for adding such functionality to
containers. I could imagine some philosophical objections, but there
often is no good alternative if you need the functionality.
So I guess the advice here is: use the proper container interfaces for
this, or if they don't exist, fix the container. :-)
--
Florian Weimer / Red Hat Product Security
More information about the core-libs-dev
mailing list