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