setting startlevel for OSGI bundle

(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 the felix.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.

链接地址: http://www.djcxy.com/p/74730.html

上一篇: 带有JSP支持的OSGI环境中的Jetty 9无法启动

下一篇: 设置OSGI包的startlevel