Tuesday, October 29, 2013

I use jboss 4.0.2 and i want to have two .war files within one .ear file .
share|improve this question
1 
@Vinegar: Because multiple WARs within a single EAR is common practice? –  skaffman Feb 8 '10 at 10:32
 
@skaffman: Sorry lack of experience. ;P –  Adeel Ansari Feb 8 '10 at 10:34
I would have thought this was self-evident from the structure of the EAR's application.xml file, but here's an example of how it looks with two WARs:
xml version="1.0" encoding="UTF-8"?>
<application>
  <module>
    <web>
      <web-uri>/directory/of/war1</web-uri>
      <context-root>/war1</context-root>
    </web>
  </module>
  <module>
    <web>
      <web-uri>/directory/of/war2</web-uri>
      <context-root>/war2</context-root>
    </web>
  </module>
</application>
share|improve this answer

No comments: