Hi,

I read the book OSGI in Action about the OSGI security model (ch14), 
specifically about the ConditionalPermissionAdmin.
The Karaf 'system.properties' file says the following:

# To enable OSGi security, uncomment the properties below,
# install the framework-security feature and restart.
#
#java.security.policy=${karaf.etc}/all.policy
#org.osgi.framework.security=osgi
#org.osgi.framework.trust.repositories=${karaf.etc}/trustStore.ks

That's clear to me.

But the OSGI in Action book says that the bundle that sets the permission 
should be the first bundle that get the ConditionalPermissionAdmin service (and 
then sets the required permissions).
How can I ensure that my bundle that sets the permissions is the first (and 
only) bundle doing so?

Thanks,

-- Jaap
 

Reply via email to