开发者

how to I have two .war files within one .ear file?

开发者 https://www.devze.com 2022-12-20 00:17 出处:网络
I 开发者_开发知识库use jboss 4.0.2 and i want to have two .war files within one .ear file .I would have thought this was self-evident from the structure of the EAR\'s application.xml file, but here\'s

I 开发者_开发知识库use jboss 4.0.2 and i want to have two .war files within one .ear file .


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>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号