Chapter 22. Defining the EAR Deployment Descriptor

This chapter is for the Application Provider; that is, the person in charge of combining one or more components (EJB-JARs and/or WARs) to create a J2EE application.

22.1. Principles

The application programmer is responsible for providing the deployment descriptor associated with the developed application (Enterprise ARchive). The Application Assembler's responsibilities is to provide a XML deployment descriptor that conforms to the deployment descriptor's XML schema as defined in the J2EE specification version 1.4. Refer to $JONAS_ROOT/xml/application_1_4.xsd (http://jonas.objectweb.org/current/xml/application_1_4.xsd.)

To deploy J2EE applications on the application server, all information is contained in one XML deployment descriptor. The file name for the application XML deployment descriptor is application.xml and it must be located in the top level META-INF directory.

The parser gets the specified schema via the classpath (schemas are packaged in the $JONAS_ROOT/lib/common/ow_jonas.jar file).

Some J2EE application examples are provided in the JOnAS distribution:

The standard deployment descriptor should contain structural information that includes the following:

There is no JOnAS-specific deployment descriptor for the Enterprise ARchive.