2 Replies Latest reply on Jun 17, 2008 1:54 PM by Stephan Heffner

    Observe shutdown of a seam application

    Stephan Heffner Newbie

      I'm using an observer class annotated like this:


          @Observer("org.jboss.seam.postInitialization")
          public void seamInitialized() {
              // doing many things with Seam components :-)
          }
      


      Works fine as expected.


      But, I would also like to know when the application stops or will be restarted. Within the Seam Sources I havn't found any Event like "preShutdown".


      I've tried to solve this using a MBean, but there I can't use the Seam components.


      Is there any way to get notified within the Seam application context?


      Stephan