You can implement a BundleListener to catch when the bundle is installed/started and do some code.

Regards
JB

On 12/10/2014 08:20 PM, thully wrote:
Our project (Cytoscape) utilizes Karaf for OSGi bundle loading and
management. We are using Felix FileInstall to load additional bundles
("apps") installed by users. As it stands, the bundles loaded by Felix
FileInstall load after all other bundles. While this is generally what we
want, we do have some code that we'd like to trigger after the bundles
loaded by FileInstall have started - or at least after an attempt has been
made to start them.

Is there a way to do this? It doesn't seem like Felix FileInstall has much
of an API to speak of, though it seems this may be possible by using Karaf
runlevels - particularly with the ability to respect load order on 3.0.2.
If not, it seems like we may need to move away from Felix FileInstall and
write our own bundle installation mechanism...



--
View this message in context: 
http://karaf.922171.n3.nabble.com/How-to-execute-code-after-bundles-started-by-Felix-FileInstall-tp4037120.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

Reply via email to