I'm trying to use a StartLevel to differentiate
Between a default installed framework and the
Actual installed apps.
With the standard Felix-1.8.0 app,
I've tried the 'startlevel 2' shell command and then using 'install
<url>' & 'start'
But the startlevel doesn't get recorded with the bundle
I've also tried
public void setStartLevel(BundleContext ctx, int level){
ServiceReference mRef =
ctx.getServiceReference(org.osgi.service.startlevel.StartLevel.class.get
Name());
org.osgi.service.startlevel.StartLevel mStartLevel =
(org.osgi.service.startlevel.StartLevel)ctx.getService(mRef);
if (mStartLevel != null){
mStartLevel.setStartLevel(level);
}
int x = mStartLevel.getStartLevel();
ctx.ungetService(mRef);
}
Without any clue why tha value isn't recorded
Thanks,
Roland
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]