karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hervé BARRAULT <herve.barra...@gmail.com>
Subject Starting/Stopping Programmatically Bundles
Date Mon, 16 Jan 2012 17:07:43 GMT
HI, i'm using Karaf 2.0.0 and i'm trying to find a way to start/stop a
bundle with java code.

I have difficulties to find the right API to use (and which service to import).

I have tried to create a BundleListener and expose it as an osgi
service (in order to being notified of bundles start/stop) but i'm not
notified.
I thought getting data about bundles and being able to manipulate it.

What are the correct steps to do this ?

Regards
Hervé

Mime
View raw message