Instead of installing mbeans directly you can also use aries-jmx and
simply export the mbeans as OSGi services and let aries publish them
according to the whiteboard pattern.
This has two advantages:
1. You do not have to do extra handling when no MBeanServer is there
2. You do not have to clean up when stopping your bundles as all its
services are unregistered anyway.
Christian
On 27.01.2015 08:50, Prithviraj wrote:
Hi ,
We are using Mbeans in our application running on Karaf server.
Now our requirement is while uninstalling our application , we need to
uninstall Mbeans which are added by us.
I am aware of way to execute code while start up of Karaf server .
Is there any way to execute code while stopping /uninstall ?
Thanks in advance .
Thanks,
Prithvi
--
View this message in context:
http://karaf.922171.n3.nabble.com/Need-to-execute-code-while-uninstalling-application-on-Karaf-tp4038037.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
http://www.talend.com