如何在glassfish 3.1.2 equinox中更改捆绑启动级别?

时间:2013-02-28 13:16:30

标签: osgi glassfish-3 equinox



我想在我的glassfish中更改一个包的起始级别。我使用equinox作为osgi运行时。

我更改了配置文件glassfish \ config \ osgi.properties并添加以下行:

osgi.bundles=bundlesymbolicname@5:启动

当我通过telnet连接并使用“lb bundleid”搜索包时,我在级别列1中看到而不是5。

任何人都可以帮助我吗?我的配置有什么问题?

谢谢Marco。

1 个答案:

答案 0 :(得分:1)

您可以通过更新以下项目来更改$ {GF_HONE} /glassfish/config/osgi.properties:

# What should be the initial start level of framework. 
# For performance reason, initially we set the start level to 1 so that no optional
# bundles can get activated while server is still starting. Once server is started,
# the framework's start level is set to whatever is configured in glassfish.osgi.start.level.final property.
org.osgi.framework.startlevel.beginning=1

# Set bundle start level to be same or less than that of framework, 
# otherwise HK2 installed bundles won't be activated.
# See issue #5934
felix.startlevel.bundle=1