3 Replies Latest reply on Dec 23, 2009 10:19 AM by jaikiran

    Multiple Web Apps in EAR

      If I wanted to deploy multiple web applications as part of a single enterprise application, would my application.xml file look something like the following.

       

      <?xml version="1.0" encoding="UTF-8"?>
      <application version="5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd">
        <module>
          <web>
            <web-uri>webapp1.war</web-uri>
            <context-root>/w1</context-root>
          </web>
        </module>
        <module>
          <ejb>my-ejb.jar</ejb>
        </module>
       
        <module>
          <web>
            <web-uri>webapp2.war</web-uri>
            <context-root>/w2</context-root>
          </web>
        </module>
        <module>
          <ejb>my-ejb.jar</ejb>
        </module>
      </application>