开发者

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开发者_Python百科, 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜