如何在一个 .ear 文件中包含两个 .war 文件? [英] how to I have two .war files within one .ear file?

查看:27
本文介绍了如何在一个 .ear 文件中包含两个 .war 文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 jboss 4.0.2,我想在一个 .ear 文件中包含两个 .war 文件.

I use jboss 4.0.2 and i want to have two .war files within one .ear file .

推荐答案

我本以为这从 EAR 的 application.xml 文件的结构中是不言而喻的,但这里有一个示例,说明它在两个 WAR 中的表现:

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>

这篇关于如何在一个 .ear 文件中包含两个 .war 文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆