-
1. Re: karaf jmx api bundle search
ffang Jan 16, 2013 8:10 PM (in response to isakovarseniy)Hi,
Not sure I understand your question here? Could you please elaborate it?
Do you want to install some specific bundle or something else?
Freeman
-
2. Re: karaf jmx api bundle search
isakovarseniy Jan 16, 2013 9:25 PM (in response to ffang)Starting bunble
long bundleNumber = osgiFrameworkProxy.installBundle("mvn:" + featureGroup + "/" + featureName + "/"
+ featureVersion);
osgiFrameworkProxy.startBundle(bundleNumber);
Now assume I lost variable bundleNumber. How to check if the bundle installed? So I am looking for function:
osgiFrameworkProxy.isInstalled("mvn:" + featureGroup + "/" + featureName + "/"
+ featureVersion))
Thanks
Arseniy Isakov
Edited by: isakovarseniy on Jan 17, 2013 2:24 AM
-
3. Re: karaf jmx api bundle search
ffang Jan 16, 2013 9:13 PM (in response to isakovarseniy)Hi,
Use "list -s" you can list all installed bundles with Symbolic name & version, where you can figure out if a certain bundle get installed.
You can run a script which is a ssh client to connect to the container, run "list -s" and parse the result.
Freeman
-
4. Re: karaf jmx api bundle search
isakovarseniy Jan 16, 2013 9:27 PM (in response to ffang)Is it possible to run command from jmx api without ssh?
Thanks
-
5. Re: karaf jmx api bundle search
ffang Jan 16, 2013 9:40 PM (in response to isakovarseniy)Hi,
Ah, yes,
org.apache.karaf.management.mbeans.bundles.BundlesMBean.list(), it will return TabularData which container all bundles, from each bundle you can get info like Name/Version.
You can start a jconsole and connect to FUSE ESB and go through those MBeans to get more ideas.
Freeman
-
6. Re: karaf jmx api bundle search
isakovarseniy Jan 16, 2013 11:19 PM (in response to ffang)Thanks