我使用 jboss 4.0.2,我想在一个 .ear 文件中有两个 .war 文件。
问问题
14255 次
1 回答
10
我会认为这从 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>
于 2010-02-08T10:32:15.293 回答