我使用 jboss 4.0.2,我想在一个 .ear 文件中包含两个 .war 文件。
最佳答案
从 EAR 的 application.xml 文件的结构来看,我本以为这是不言而喻的,但这里有两个 WAR 的示例:
<?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>
关于java - 如何在一个 .ear 文件中包含两个 .war 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2220891/