commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig McClanahan <craig...@gmail.com>
Subject Re: [general] Do j2ee frameworks provide hook for "undeploy"?
Date Mon, 14 Mar 2005 05:13:15 GMT
On Mon, 14 Mar 2005 00:01:54 +1300, Simon Kitching <skitching@apache.org> wrote:
> 
> Can any j2ee/websphere/bea/geronimo/etc experts out there confirm that
> there is no *standard* way for an application deployed within a j2ee
> framework to register a callback that will be invoked when the component
> is undeployed, but that these systems *do* provide non-standard ways to
> do this?
> 

For web applications in J2EE 1.3 or later containers,
ServletContextListener provides the callback registration you are
looking for, in the contextDestroyed() method.  A web framework that
utiizes the underlying libraries you mention should be calling the
cleanup methods automatically.

For pre-J2EE 1.3 containers, Struts supports a similar concept called
PlugIn, whose destroy() method is called when the destroy() method of
the base servlet is called.

Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message