2013-02-28 54 views
0



我想更改glassfish中的包的开始级别。我用equinox作为osgi运行时。如何在glassfish 3.1.2 equinox中更改包开始级别?

我改变配置文件的GlassFish \ CONFIG \ osgi.properties并添加如下因素线:

[email protected]:启动

当我通过telnet连接和搜索与“捆磅捆绑“我看在水平列1而不是5.

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

谢谢Marco。

回答

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