Wildfly,WAR和虚拟主机

时间:2018-01-17 14:02:33

标签: java-ee jboss wildfly war virtualhost

目前我遇到以下情况的问题:

  1. 在Wildfly中,虚拟主机在standalone.xml文件中定义。
  2. 要将已部署的.war - 工件绑定到虚拟主机,虚拟主机将放置在jboss-web.xml - 工件的.war中。
  3. 导致.war - 工件依赖于当前(Wildfly)环境工作的事实,因此不可交换,例如存储在Artifactory等神器商店中。

    有没有办法克服这个问题,或者首先是假设1和/或2错误?

1 个答案:

答案 0 :(得分:0)

显然我并不知道有一种方法可以在某些部署描述符中使用占位符:

  

jboss-descriptor-property-replacement用于在以下描述符中启用或禁用属性替换:

new_lst[0].license
分别

  

spec-descriptor-property-replacement用于在以下描述符中启用或禁用属性替换:

jboss-ejb3.xml
jboss-app.xml
jboss-web.xml
*-jms.xml
*-ds.xml 

https://access.redhat.com/documentation/en-us/jboss_enterprise_application_platform/6.2/html/security_guide/enablingdisabling_descriptor_based_property_replacement1