-
1. Re: Getting undeploy event
kcbabo Jul 11, 2014 8:12 AM (in response to calca)You can register an EventObserver with the LocalManagementMBean:
The ApplicationUndeployedEvent happens during undeployment, but this is after services have been unregistered, etc. Are you looking to invoke a bean service when an application is shutting down? There's not really a hook for doing that now. An alternative option wold be to expose the method through a binding and invoke that with a script as part of your shutdown process.
-
2. Re: Getting undeploy event
calca Jul 14, 2014 9:17 AM (in response to kcbabo)Hey Keith, thanks for this.
I exposed the method, but could not find a way of invoking. Which script type are you thinking about?
Thanks
Demian
-
3. Re: Getting undeploy event
kcbabo Jul 24, 2014 12:03 PM (in response to calca)I was just thinking about using something like 'curl' to poke the service from bash. But that's just an example of something simple that should be easy to incorporate into a shutdown script.