【问题标题】:How to change bundle start level in glassfish 3.1.2 equinox?如何在 glassfish 3.1.2 Equinox 中更改捆绑启动级别?
【发布时间】:2013-02-28 13:16:30
【问题描述】:
我想更改 glassfish 中捆绑包的起始级别。我使用Equinox作为osgi运行时。
我更改了配置文件 glassfish\config\osgi.properties 并添加了以下行:
osgi.bundles=bundlesymbolicname@5:start
当我通过 telnet 连接并使用“lb bundleid”搜索捆绑包时,我在级别列 1 而不是 5 中看到。
谁能帮助我?我的配置有什么问题?
谢谢马可。
【问题讨论】:
标签:
osgi
glassfish-3
equinox
【解决方案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