You can use the Application Deployment Descriptor editor to add
existing projects in your workspace to your enterprise application as new
modules.
For each module that you add to the enterprise application, a <module> element
is defined in the deployment descriptor (application.xml).
Tip: Shortcuts for adding modules or utility JAR files
to an enterprise application:
- Drag a project from the Project Explorer view and drop it on the Modules or Project
Utility JARs section of the Application Deployment Descriptor
editor.
- Within the Project Explorer view, drag a project and drop it on the Modules or Project
Utility JARs folder under the deployment descriptor for the enterprise
application.
To add a module to an enterprise application:
- In the Project Explorer view of the J2EE perspective, right-click
the Deployment Descriptor for your enterprise application project and select to open the Application Deployment Descriptor editor.
- In the Modules section of the Module page, click Add.
The Add Module wizard appears.
- Select the existing project in your workspace that you want to
add as a module to the application.
- Click Finish. The selected
module is added to the enterprise application.
- If the target server specified for the module is different from
the target server specified for the enterprise application, the Change Target
Server dialog opens. Click Yes to update the target
server for the module to be the same target server specified for the enterprise
application.
To remove a module from the enterprise application, select the module
from the list of Modules, and click Remove.