This content has been marked as final.
Show 2 replies
-
1. Re: OSGI bundle information
njiang Dec 9, 2009 7:59 PM (in response to mfatafta)You get that kind of information for ServiceMix console, but from camel route I don't think so, as there is no Camel API to do this bundle monitoring work.
It should be easy if you add an activator in your camel application bundle, then you can get the all bundle information from the BundleContext when your activator is started.
-
2. Re: OSGI bundle information
unwired Dec 10, 2009 7:38 PM (in response to mfatafta)Take a look at PackageAdmin
http://www.osgi.org/javadoc/r4v41/org/osgi/service/packageadmin/PackageAdmin.html
From PackageAdmin given your class name you can get your bundle and a lot of information regarding your bundle.
PackageAdmin can be injected in
<osgi:reference id="packageAdmin" interface="org.osgi.service.packageadmin.PackageAdmin"/>