Application.xml

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Overview

Goes into the META-INF/ directory of the EAR. Can be generated automatically by Maven ear plugin.

<application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             version="6"
             xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd">
    <application-name>jboss-as-ejb-in-ear</application-name>
    <initialize-in-order>true</initialize-in-order>
    <module>
        <ejb>myBeans.jar</ejb>
    </module>
    <module>
        <web>
            <web-uri>myApp.war</web-uri>
            <context-root>myApp</context-root>
        </web>
    </module>
</application>

Elements

<application-name>

The name of the JEE application. The value specified here overrides the default application-name component of the JNDI names for EJBs deployed as part of this application.


<module>

<web>

<context-root>

Specifies the web application's context root, as it will be served by the web server.

TODO

Media:Example.ogg TODO https://docs.jboss.org/author/display/AS71/Developer+Guide#DeveloperGuide-application.xml