someone asked about starting an application on startup. The answer was to use a servlets init-method and load-on-startup 1 .
Is there a similar method that gets called on stopping/undeploying the application ? Can such a method be used to unregister notification listeners from JMX MBeanservers ?