Struktur einer Java EE Anwendung
J2EEApplication + META-INF + application.xml - Deploymentdescriptor des EAR + lib - enthält Bibliotheken der Anwendung : + WebappA (gepackt: WebappA.war, ohne src) + src-Pfad(e) + resourcen + index.html + WEB-INF + web.xml - Deploymentdescriptor + myserver-web.xml - DD severspezifisch + lib (alle Bibliotheken der Webapp) + classes (alle Klassen) + WebappB : + modulA-ejb (gepackt: modulA-ejb.jar) + src-Pfad(e) (optional) + META-INF + ejb-jar.xml - Deploymentdescriptor + myserver-ejb-jar.xml - DD severspezifisch (2) + MANIFEST.MF (optional: Class-Path Einträge auf weitere JAR) + com/myproject/../*.class + modulA-client-ejb (gepackt: modulA-client-ejb.jar (1)) + src-Pfad(e) (optional) + MANIFEST.MF (optional: Class-Path Einträge auf weitere JAR) + com/myproject/../*.class (Home-Interface, Remote-Interface, Primary Key-Klassen und alle abhängigen Klassen dieser Schnittstellen) : + modulB-ejb + modulB-client-ejb : + nameA-ra + src-Pfad(e) (optional) + META-INF + ra.xml - Deploymentdescriptor + myserver-ra.xml - DD severspezifisch + MANIFEST.MF (optional: Class-Path Einträge auf weitere JAR) + com/myproject/../*.class + nameB-ra : + libA + src-Pfad(e) (optional) + META-INF + MANIFEST.MF (optional: Class-Path Einträge auf weitere JAR) + com/myproject/../*.class : + externA.jar + externB.jar :
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'> <ejb-jar> <enterprise-beans> : </enterprise-beans> <assembly-descriptor> : </assembly-descriptor> </ejb-jar>
<?xml version="1.0" encoding="UTF-8"?> <connector xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd" version="1.5"> <display-name>..</display-name> <vendor-name>..</vendor-name> <eis-type>..</eis-type> <resourceadapter-version>..</resourceadapter-version> <resourceadapter> : </resourceadapter> </connector>
<?xml version="1.0" encoding="UTF-8"?> <ejb-jar version="2.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"> <display-name>..</display-name> <enterprise-beans> : </enterprise-beans> <assembly-descriptor> : </assembly-descriptor> </ejb-jar>
<?xml version="1.0" encoding="UTF-8"?> <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd" version="3.0"> <enterprise-beans> : </enterprise-beans> <assembly-descriptor> : </assembly-descriptor> </ejb-jar>
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> : </web-app>