【问题标题】:Wildfly, WAR and virtual hostsWildfly、WAR 和虚拟主机
【发布时间】:2018-01-17 14:02:33
【问题描述】:

目前我遇到以下情况:

  1. 在 Wildfly 中,虚拟主机在 standalone.xml 文件中定义。
  2. 要将已部署的.war-Artifact 绑定到虚拟主机,将虚拟主机放置在.war-Artifact 的jboss-web.xml 中。

这导致.war-Artifacts 依赖于当前(Wildfly)环境才能工作,因此不可交换,例如存放在 Artifactory 之类的神器商店中。

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

【问题讨论】:

    标签: jakarta-ee jboss wildfly war virtualhost


    【解决方案1】:

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

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

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

    分别

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

    ejb-jar.xml
    persistence.xml 
    

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

    【讨论】:

      猜你喜欢
      • 2014-12-26
      • 2015-02-27
      • 2016-09-09
      • 2011-12-24
      • 2015-03-24
      • 2011-06-11
      • 2014-05-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多