Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-7658

Support configuration of virtual host in jboss-app.xml

XMLWordPrintable

    • Documentation (Ref Guide, User Guide, etc.), Release Notes, Compatibility/Configuration

      User has requested the following:

      When a WAR is being deployed as part of an EAR, along configuration of the virtual-host to which the web application is published within the EAR's deployment descriptor. Very much like they can control the context-root for the WAR from the EAR. For example:

      jboss-app.xml:
      <jboss-app>
      <module>
      <web>
      <web-uri>example-1.0.0.war</web-uri>
      <context-root>/example</context-root>
      <virtual-host>us</virtual-host>
      <virtual-host>canada</virtual-host>
      </web>
      </module>
      </jboss-app>

      This would allow the context root and virtual host list to be controlled from the EAR's deployment descriptor instead of having to extract the WAR from the EAR, modify the WAR's deployment descriptor and then repackage the EAR. As the EAR currently supports the functionality of overriding the WAR's deployment information it would make sense that this would be something that could be overridden.

              bstansbe@redhat.com Brian Stansberry
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: