(I use glassfish 3.1, felix)
I have a log bundle that needs to be started before other bundles in my glassfish server.
Is there a way to configure startlevel for a single OSGI bundle? Any of the following ways will be fine: configuring a properties file, solution on java side, header in bundle manifest.
thanks.
In Felix, you can change the launcher properties (for instance,
conf/config.properties) to start bundles with different start levels. You can use thefelix.auto.deploy.install.<n>properties for that.To set the framework’s initial startlevel, you can use the configuration property
org.osgi.framework.startlevel.beginning, see section 4.2.2 of the core spec for more information.