3.4 glassfish-application.xml
glassfish-application.xml is the Java EE RI DD used for specifying the Java EE application settings.
Description
glassfish-application.xml is the DD used for specifying the Java EE application settings that are unique to Java EE RI.
The root element of glassfish-application.xml is glassfish-application. The glassfish-application element contains child elements and attributes as indicated by "Element hierarchy". These child elements and attributes may further contain child elements and attributes.
Schema
<!DOCTYPE glassfish-application PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Java EE Application 6.0//EN" "http://glassfish.org/dtds/glassfish-application_6_0-1.dtd">
Storage location
The DD file is stored in the following location:
application_ear_name/META-INF directory.
application_ear_name: Represents the archive name of the application.
Element hierarchy
glassfish-application . web .. web-uri .. context-root . security-role-mapping .. role-name .. principal-name .. group-name . realm . ejb-ref .. ejb-ref-name .. jndi-name . resource-ref .. res-ref-name .. jndi-name .. default-resource-principal ... name ... password . resource-env-ref .. resource-env-ref-name .. jndi-name . service-ref .. service-ref-name .. port-info ... service-endpoint-interface ... wsdl-port .... namespaceURI .... localpart ... stub-property .. service-impl-class .. service-qname ... namespaceURI ... localpart . message-destination-ref .. message-destination-ref-name .. jndi-name . message-destination .. message-destination-name .. jndi-name . archive-name . version-identifier
Examples
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE glassfish-application PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Java EE Application 6.0//EN" "http://glassfish.org/dtds/glassfish-application_6_0-1.dtd"> <glassfish-application> <unique-id>67488732739338240</unique-id> <web> <web-uri>hello.war</web-uri> <context-root>/hello</context-root> </web> </glassfish-application>