如果安装了捆绑软件的多个版本,如何找出使用了哪个版本?

时间:2019-05-07 11:18:42

标签: osgi aem

在AEM中部署的同一捆绑包的两个不同版本,并且两个捆绑包均处于活动状态。我的问题如何确定当前正在使用哪个版本的捆绑软件?

1 个答案:

答案 0 :(得分:0)

最简单的方法很可能是访问AEM WebConsole, go to "Bundles"选项卡,然后展开有趣的Bundles,然后您将看到列出的所有其他Bundles,它们实际上导入了此bundle导出的软件包,以输入“ Importing Bundles”。 / p>

如果您有权访问OSGi Shell(如果AEM允许,则为IDK),还可以使用bundle:capabilities <bundle-id>命令,该命令在使用导出的软件包的情况下显示“接线”,例如。 (通过Karaf安装,但看起来非常相似):

karaf@root()> bundle:capabilities 307                                                                                                                                      21:12:12
org.apache.felix.scr [307] provides:
------------------------------------
osgi.wiring.bundle; org.apache.felix.scr 2.0.8 [UNUSED]
osgi.wiring.host; org.apache.felix.scr 2.0.8 [UNUSED]
osgi.identity; org.apache.felix.scr 2.0.8 [UNUSED]
osgi.wiring.package; org.apache.felix.scr.component 1.1.0 [UNUSED]
osgi.wiring.package; org.apache.felix.scr.info 1.0.0 required by:
   org.apache.felix.scr.compat [133]
osgi.wiring.package; org.osgi.service.component 1.3.0 required by:
   org.apache.felix.scr.compat [133]
osgi.wiring.package; org.osgi.service.component.runtime 1.3.0 required by:
   org.apache.felix.scr.compat [133]
   org.apache.karaf.scr.state [135]
   org.apache.karaf.scr.command [311]
   org.apache.felix.webconsole.plugins.ds [351]
osgi.wiring.package; org.osgi.service.component.runtime.dto 1.3.0 required by:
   org.apache.karaf.scr.command [311]
   org.apache.karaf.scr.state [135]
   org.apache.felix.webconsole.plugins.ds [351]
   org.apache.felix.scr.compat [133]
osgi.wiring.package; org.osgi.util.function 1.0.0 [UNUSED]
osgi.wiring.package; org.osgi.util.promise 1.0.0 required by:
   org.apache.karaf.scr.command [311]
   org.apache.felix.webconsole.plugins.ds [351]
osgi.extender; osgi.component 1.3.0 [UNUSED]
[org.apache.felix.scr [307](R 307.0)] osgi.service; {objectClass=[org.osgi.service.component.runtime.ServiceComponentRuntime]} [UNUSED]
service; [org.osgi.service.component.runtime.ServiceComponentRuntime] with properties:
   service.bundleid = 307
   service.id = 110
   service.scope = singleton
   Used by:
      org.apache.felix.webconsole.plugins.ds [351]
      org.apache.karaf.scr.command [311]
service; [org.apache.felix.scr.impl.ScrGogoCommand] with properties:
   osgi.command.function = [config, disable, enable, info, list]
   osgi.command.scope = scr
   service.bundleid = 307
   service.description = SCR Gogo Shell Support
   service.id = 111
   service.scope = singleton
   service.vendor = The Apache Software Foundation
service; [org.osgi.service.cm.ManagedService] with properties:
   service.bundleid = 307
   service.description = SCR Configurator
   service.id = 112
   service.pid = org.apache.felix.scr.ScrService
   service.scope = bundle
   service.vendor = The Apache Software Foundation
   Used by:
      org.apache.felix.metatype [2]
相关问题