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.
About this task
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 EJB client JAR projects.
Procedure
- In the Enterprise Explorer view of the Java™ EE perspective, right-click the EJB project,
and select from the pop-up menu.
- A warning dialog asks you to confirm the removal. Click Yes to
remove the EJB client JAR project.
Results
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 are 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.