Question

We are running Apache ServiceMix 4 ESB which runs an Apache Karaf container based on OSGi. OSGi offers facilities, which are exposed in the ServiceMix console, that report information on the state of bundles installed in the container:

osgi:list

I've searched high and low. Now I'm asking: Does anyone know of any working examples, guides on using the API or other guidance in accessing this information from within code running in the ESB? Ideally, I would like to:

  1. Identify which bundles are installed;
  2. Monitor the state of the identified bundle; and, at least,
  3. Dynamically stop/uninstall and start/re-install the identified bundle,

Please share any information available on this, or just any avenues from which to start better researching it.

Thanks.

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top