Enterprise application projects contain references to the resources needed for enterprise applications and can contain a combination of Web modules, JAR files, connector modules, EJB modules, and application client modules. An enterprise application project is deployed in the form of an EAR file, and is therefore sometimes referred to as an EAR project. The modules in an enterprise application project are mapped to other J2EE projects. The mapping information is stored in metadata files within the enterprise application project. The metadata files are used for exporting the project to an EAR file and for running the project on the server.
Like the other types of projects, enterprise application projects can contain one or more project facets, which represent units of functionality in the project. To be deployed as an EAR file, the new project must have the EAR facet. Depending on what you want to use the project for, you may want to enable other facets for the project.
To create a J2EE enterprise application project: