Hi,

You should be able to do this with a BundleListener [1]. You'll
receive INSTALLED events for bundles, if you don't receive
RESOLVED/STARTED events for them within a reasonable timeframe you
know that something went wrong...

Cheers,

David

[1] https://osgi.org/javadoc/r6/core/org/osgi/framework/BundleListener.html

On 2 April 2015 at 23:58, thully <[email protected]> wrote:
> We're using Felix FileInstall as part of Karaf in our project (Cytoscape) to
> load third-party bundles ("apps") installed by users. In some cases, an app
> may be missing dependencies or its JAR file may be corrupt, causing the
> bundle to fail to load.
>
> Currently, this is logged by Felix FileInstall - is there any way for our
> code to catch these failures and react accordingly (i.e. display our own
> error message)? It seems like there should be an interface to do this,
> though it's not clear how this could be done with any of the interfaces
> defined by FileInstall.
>
>
>
> --
> View this message in context: 
> http://apache-felix.18485.x6.nabble.com/How-to-catch-FileInstall-bundle-load-errors-tp5012257.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to