[Struts 2] How can I receive notification when the web app has been destroyed?

2012-08-24 Thread John Boyer
So that I can cleanup resources. How can I receive a notification in a Struts 2 web app when the app has been unloaded, stopped, un-deployed, etc.? Thank you, John Boyer - To unsubscribe, e-mail:

Re: [Struts 2] How can I receive notification when the web app has been destroyed?

2012-08-24 Thread Paul Benedict
Use a servlet listener. On Aug 24, 2012 2:54 PM, John Boyer j...@rodaxsoft.com wrote: So that I can cleanup resources. How can I receive a notification in a Struts 2 web app when the app has been unloaded, stopped, un-deployed, etc.? Thank you, John Boyer

Re: [Struts 2] How can I receive notification when the web app has been destroyed?

2012-08-24 Thread Kevin Duffey
As another said.. in web.xml you configure a servlet context listener, in your code you provide a class that implements the ServletContextListener and you can use it to know when the app is deployed and undeployed. On Fri, Aug 24, 2012 at 12:54 PM, John Boyer j...@rodaxsoft.com wrote: So that

RE: [Struts 2] How can I receive notification when the web app has been destroyed?

2012-08-24 Thread Martin Gainty
effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Fri, 24 Aug 2012 12:59:23 -0700 Subject: Re: [Struts 2] How can I receive notification when the web app has