3 Replies Latest reply on Jan 2, 2010 7:37 PM by Walter White

    Application Shutdown Listener

    Walter White Novice

      Hi all,

      I would like to know when Seam is shutting down to log information to the database.  I was trying to use the pre context destroyed event for the application scope, but that didn't seem to work.

      I was wondering if this is possible?  If it is, I need to inject an EntityManager as well as an EntityQuery to do a lookup, then a merge/update.

      public void onShutdown()
         entity.setShutownDate(new Date());