Application.xml: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Overview= <font color=red>'''TODO''' https://docs.jboss.org/author/display/AS71/Developer+Guide#DeveloperGuide-application.xml</font>")
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Overview=
=Overview=


Goes into the META-INF/ directory of the EAR. Can be generated automatically by [[Maven_ear_Plugin|Maven ear plugin]].
<pre>
<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>
</pre>
=Elements=
==<application-name>==
The name of the JEE application. The value specified here overrides the default ''[[EJB_Concepts#application-name|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]]
<font color=red>'''TODO''' https://docs.jboss.org/author/display/AS71/Developer+Guide#DeveloperGuide-application.xml</font>
<font color=red>'''TODO''' https://docs.jboss.org/author/display/AS71/Developer+Guide#DeveloperGuide-application.xml</font>

Latest revision as of 17:28, 7 April 2017

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