本文介绍了如何在Wildfly中设置两只耳朵的部署顺序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我对Wildfly 8.1中两个应用程序的部署顺序有一些问题。
问题是 app2.ear
的某些模块取决于 app1.ear
中的模块,但 app1.ear
在 app2.ear
之后部署。
I've some issue regarding the deployment order of two applications inside Wildfly 8.1.The problem is that some modules of app2.ear
depends of modules from app1.ear
, but app1.ear
is deployed after app2.ear
.
我试图像这样指定app1的依赖项:
I've tried to specify a dependency for app1 like this:
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<deployment>
<dependencies>
<module name="app2.ear" />
</dependencies>
</deployment>
</jboss-deployment-structure>
但没有运气, app1.ear
失败使用此错误进行部署:
But no luck, app1.ear
fails to deploy with this error:
是否有可能以及如何点缀它?
Any idea if it is possible and how to dot it ?
提前Thx。
推荐答案
在 META中指定依赖关系-INF / jboss-all.xml
。
Specify the dependencies in META-INF/jboss-all.xml
.
所以对于你的 app2.ear
它看起来像:
So for your app2.ear
it can look like:
<jboss xmlns="urn:jboss:1.0">
<jboss-deployment-dependencies xmlns="urn:jboss:deployment-dependencies:1.0">
<dependency name="app1.ear" />
</jboss-deployment-dependencies>
</jboss>
这篇关于如何在Wildfly中设置两只耳朵的部署顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!