3
我使用jboss 4.0.2,我想在一个.ear文件中包含两个.war文件。如何在一个.ear文件中有两个.war文件?
我使用jboss 4.0.2,我想在一个.ear文件中包含两个.war文件。如何在一个.ear文件中有两个.war文件?
我还以为这是不言而喻的,从EAR的application.xml文件的结构,但这里是它的外观与两场战争的例子:
<?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>
@Vinegar:因为内多的WAR单一的EAR是常见的做法? – skaffman 2010-02-08 10:32:43
@skaffman:对不起,缺乏经验。 ,P – 2010-02-08 10:34:21