Hi Asha,

You can create a class that implements org.osgi.framework.SynchronousBundleListener (and register it as an OSGi service).

Like this, you will catch all events on bundle.

Regards
JB

On 05/29/2013 08:40 PM, anair wrote:
Hello,

I have a requirement where we need to programmatically install all the
bundles in cache after it has been cleared. I was thinking of writing the
bundle symbolic name to a file, (any file) so that we can keep a track of
all the bundles installed by the user using the osgi:install command. We
plan to extend it to let the user install the bundle from the obr
repository. Since this goes to cache we do not know a way of doing this now.
So my question is, is it possible to achieve this in karaf 2.2.9? I think I
need to listen to some event that is being generated when a bundle gets
installed. Is this the right approach or am I in the wrong track?

Any pointers are greatly appreciated.

thanks,

Asha



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Is-there-a-way-to-listen-to-osgi-install-event-on-karaf-2-2-9-tp4028878.html
Sent from the Karaf - User mailing list archive at Nabble.com.


--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to