Hi,
why not providing a feature and implementing a FeatureListener to catch
the error ?
You can also implement a FileInstall Artifact Transformer to deal with
bundle installation and so catch the errors.
Regards
JB
On 04/02/2015 04:43 AM, thully wrote:
Hi,
Our project (Cytoscape) utilizes Karaf 3 as its framework for OSGi bundle
management. In our application, end users are able to install bundles -
either from our App Store or from disk. These bundles are stored in a
subdirectory of the user's home that is managed by Felix FileInstall.
Anyway, I was wondering if there is any way to capture bundle load errors
programmatically so that our application can respond to them (i.e. by
displaying an error message, offering the user the choice to uninstall the
bundle, etc etc). It seems that since FileInstall starts the bundles, there
is no way to capture these aside from scraping the log.
Would it be a better approach to simply not use FileInstall at all and
manage our own local bundles? If that might be a good approach, how can we
change its settings such that it won't scan for JAR files?
--
View this message in context:
http://karaf.922171.n3.nabble.com/Capturing-bundle-load-errors-tp4039419.html
Sent from the Karaf - User mailing list archive at Nabble.com.
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com