I am working on a project that requires to monitor and manage (start, stop, install, uninstall, update) OSGi bundles in an OSGi based application using pre-programed instructions, similar to java reflections, the OSGi application can reflect upon itself by monitoring itself and its context, it can update or remove some bundle or can add(install and start) a new bundle.
For example, there is a chat application developed using OSGi bundles. In order to add self-managing characteristics to it, there need to be a mechanism to monitor and manage (install/uninstall, start/stop, update) OSGi bundles autonomically (without human intervention or as little human involvement as possible). Any idea how this can be achieved?
I tried to explain the problem, but feel free to ask if you dont understand my question.
P.S. I am using OSGi Equinox framework.
Regards.