Hi Sapna, for OSGi > 4.3, you have to do:
org.osgi.framework.startlevel.BundleStartLevel bsl = bundle.adapt(BundleStartLevel.class);
int startLevel = bsl.getStartLevel(); where bundle is org.osgi.framework.Bundle. Regards JB On 08/12/2014 09:12 AM, SapnaB wrote:
Hi JB StartLevel is deprecated in OSGi 4.3. Is there any equivalent service available which I can use? I tried BundleStartLevel, but that doesnt give me the desired results. Thanks, Sapna -- View this message in context: http://karaf.922171.n3.nabble.com/List-User-installed-bundles-in-Karaf-from-Java-tp4034602p4034702.html Sent from the Karaf - Dev mailing list archive at Nabble.com.
-- Jean-Baptiste Onofré [email protected] http://blog.nanthrax.net Talend - http://www.talend.com
