Creating an enterprise application project
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.
When you create an enterprise application project, it is recommended that you do not give it a name that contains double-byte character set (DBCS) characters.
To create a J2EE enterprise application project:
- In the J2EE perspective, select File > New > Enterprise Application Project.
- In the Name field, type a name for the new enterprise application project. To change the default Project location, click the Browse button to select a new location.
- Click Show Advanced to specify J2EE version and the target server for the enterprise application.
- In the J2EE version drop-down list, specify the J2EE specification level that you want to use for this enterprise application.
- Click Show Advanced to specify or review default
- In the Target server drop-down list, select the application server that you want to target for your development.
- Click Next.
- On the EAR Modules page of the wizard, select the existing modules that you want to add to the new enterprise application project. Click the New Module button to open another wizard where you can create new modules for this enterprise application. In the New Module wizard, if you select the Create default module projects check box, you can choose to create default versions of the following modules which will be compatible with the enterprise application J2EE version:
- Application client project
- EJB project
- Web project
- Connector project
The wizard provides default project names for the modules, but you can specify different project names. The default modules that are created will have the same server target as the new enterprise application.
If you clear the Create default module projects check box, you can select a single module type and proceed with the proper wizard for that project type.
If you create new modules at this time, they are added to the list of available modules in the New Enterprise Application Project wizard, if the module versions are compatible with the new enterprise application you are creating.
- Click Finish.
Related concepts
J2EE architecture
Enterprise application projects
Application Deployment Descriptor editor
Related tasks
Importing an enterprise application EAR file
Exporting an enterprise application into an EAR file
Sharing projects using Project Interchange