简体   繁体   English

如何在JBoss中以正确的顺序部署OSGi捆绑包

[英]how deploy OSGi bundles in correct order in JBoss

I try to understand how to work with OSGi and JBoss AS 我试图了解如何使用OSGi和JBoss AS

I try to deploy tree bundles: b1, b2. 我尝试部署树捆绑:b1,b2。 b3. b3。 I copied bundles directory jboss-as-7.1.1.Final/standalone/deployments . 我复制了bundles目录jboss-as-7.1.1.Final/standalone/deployments Then I started JBoss. 然后我启动了JBoss。 Bundles deployed in incorrect order. 捆绑包部署顺序不正确。 As I understood I should make profile for this. 据我了解,我应该对此进行介绍。 But I cannot understand how to write it. 但是我不明白该怎么写。 Now I think the I should modify file standalone.xml and add description of my bundles. 现在,我认为我应该修改文件standalone.xml并添加我的捆绑包的描述。

Could you help me with correct deploying of bundles. 您能帮助我正确部署捆绑软件吗?

I think you need bundle starting order because of service dependencies between bundles b1, b2 and b3. 由于捆绑b1,b2和b3之间的服务依赖性,我认为您需要捆绑启动顺序。 In OSGi, to manage service dependencies, you can use Dynamic Services or Declarative Services . 在OSGi中,要管理服务依赖关系,可以使用Dynamic ServicesDeclarative Services Hope this might help you. 希望这对您有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM