myApp.ear
|
|--------- META-INF
| |
| |---------- application.xml
|
|--------- myEJB.jar
| |
| |--------- META-INF
| | |
| | |-------- ejb-jar.xml
| |
| |------ org
| | |----- myApp
| | |------- ejb
| |-------- *.class
|
|---------- myWeb.war
| |
| |----- WEB-INF
| |------ web.xml
| |
| |------ jsp
| |---- *.jsp
|
|---------- commonUtil.jar
|
|--------- org
|----- myApp
|------ common
|----- *.class
The application.xml present in the META-INF folder of the ear will contain the following:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
<application>
<display-name>helloworld</display-name>
<module>
<java>commonUtil.jar</java>
</module>
<module>
<web>
<web-uri>myWeb.war</web-uri>
<context-root>/myWeb</context-root>
</web>
</module>
<module>
<ejb>myEJB.jar</ejb>
</module>
</application>
4 comments:
Interesting, but I have one question, do you know if popular IDEs like Eclipse or IntelliJ IDEA have support to deploy an ear in exploded fashion to avoid the innecesary packaging for development time?
@SkaRootz, if the IDE is integrated with the application server specific plugins, then yes they do allow exploded deployments. For example, JBoss Tools http://www.jboss.org/tools which is a Eclipse plugin does allow exploded deployment.
Post a Comment