On Mon, 14 Mar 2005 00:01:54 +1300, Simon Kitching <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
