How to "finalize" my Switchyard Service

Latest response

Have a need to perform 'cleanup' tasks in my org.switchyard.component.bean.Service when a shutdown, via undeploy or management shutdown, is performed. So far no variation of using a finalize method will work. Is there anyway to access and register a 'listener' from my service the org.apache.camel.impl.DefaultShutdownStrategy? Maybe this is someone is need to access via a ModelControllerClient?? Any suggestions very appreciated!

Responses