Seeking guidance on using Blueprint to programmatically access info on state of ServiceMix bundles

StackOverflow https://stackoverflow.com/questions/9407505

Вопрос

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.

Нет правильного решения

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top