JBoss部署覆盖 - 嵌套部署

时间:2016-06-09 15:05:00

标签: deployment jboss overlay

我正在尝试使用包含war文件的ear文件在我的JBoss EAP 6.3.3中进行deployement-overlay。 阅读本文后:https://access.redhat.com/solutions/383393,我做了这个CLI命令: deployment-overlay add --name = eum_overlay --server-groups = SG_IHMS_APM --content = / spb-bo-voyage-2.0.0.war / template / template.xhtml = / tmp / template.xhtml --deployments = spb -voyage-2.0.0.ear --redeploy-affected但它对我不起作用!

你有个主意吗?

非常感谢

1 个答案:

答案 0 :(得分:0)

借助RedHat支持,我找到了一个解决方案,我希望与您分享:

首先:耳内的战争不应该是一个zip文件(有时候war文件是压缩的),在这种情况下它不起作用!

现在你有一个带有war文件的ear文件(解包模式),你想要使用JBoss部署覆盖,使用这个命令:

deployment-overlay add --name = Overlay_Name --content = / name_of_the_war_file.war / folder_inside_war / file.xxx = path_to_file_that_will_overlay_the_file.xxx --deployments = name_of_the_ear_file.ear --server-groups = server_group_name --redeploy-affected < / p>

它对我来说非常好!

好用!

相关问题