【问题标题】: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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-04-11
      • 2011-11-19
      • 1970-01-01
      • 1970-01-01
      • 2023-03-22
      • 2012-10-10
      • 2014-01-20
      • 1970-01-01
      相关资源
      最近更新 更多