Hi there,


I want to implement some kind of shutdown hook functionality (-> do something 
in case the container shuts down).



Would it work to use a SynchronousBundleListener and listen for STOPPING events 
for bundle 0 (the framework)?



In case I trigger a container shutdown, does the framework first send STOPPING 
events to all bundles before it actually stops them? Or are all (most) bundles 
already gone once bundle 0 received the STOPPING event?



cheers,

Hermann

Reply via email to