JMX ClientNotificationListener implementor has a method public static class ClientListener implements NotificationListener { will notify you of *any* notifications that might be sent by the MBeans that are registered in the JMX agent's MBean server http://docs.oracle.com/javase/tutorial/jmx/remote/custom.html
HTH Martin Gainty ______________________________________________ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel 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 > been destroyed? > From: kev...@bluechipexec.com > To: user@struts.apache.org > > 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 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: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > >