Removing an EJB client JAR project
If your EJB project is configured with an associated EJB client JAR project, you can remove the EJB client JAR project. The contents of the EJB client JAR project are combined with the EJB project, all references are updated, and the EJB client JAR project is deleted.
The removal of the EJB client JAR project cannot be undone, but you can recreate the EJB client JAR file later. For more information, see Creating an EJB client JAR project.
To remove an EJB client JAR project from an EJB project:
- In the Project Explorer view of the J2EE perspective, right-click the EJB module, and select EJB Client JAR > Remove EJB Client JAR Project from the pop-up menu.
- A warning dialog asks you to confirm the removal. ClickYes to remove the EJB client JAR project.
The removal process automatically does the following:
- Contents of the EJB client JAR project are combined with the EJB project.
- If duplicate files exist in the EJB project and the EJB client JAR project, then you will be asked whether you want to overwrite.
- All references are updated:
- The reference to the EJB client JAR project as a Project Utility JAR is removed from all referencing EAR projects.
- If the referencing EAR project does not contain the EJB module project, then the EJB module project is added to the referencing EAR project as a Project Utility JAR.
- Any external class path entries in the EJB client JAR project (for example, a class path entry for xerces.jar) are copied to the EJB project.
- Any Java JAR dependencies (for example, entries in the manifest Class-Path of the EJB client JAR project) are copied to the EJB project.
- Any Java JAR dependencies of other modules in the EAR projects that contain the EJB client JAR project are updated to reference the EJB project instead of the EJB client JAR project.
- The EJB client JAR project is deleted.
Related concepts
EJB client JAR projects
Related tasks
Creating an EJB client JAR project