Exporting and importing binary modules
You can add binary modules into and remove binary modules from your workspace.
Binary modules are Java™ EE modules (for example, EJB, Web, Connector, Application Client, and Utility Jars) that are left in binary state, that is, in a single .jar, .war, or .rar file) within the EAR.
Using binary modules in your workspace allows for better performance, so it is possible for a developer to only load that active component he is working on in source mode (that is, as a project) while leaving all other modules in binary state. This reduces workspace size by requiring projects for only those modules being modified. It improves performance because no builders or validators execute on binary modules.
None of the deployment descriptor files, .java files, mapping files, or the MANIFEST.MF files can be modified; however everything can be read from them in their respective editors in read-only mode.
- To export a module as a binary, follow these steps:
- If the application includes EJBs, then you need to ensure that the EAR has been prepared for deployment before the export. Right-click the EJB project, and select
Java EE | Prepare for deployment.
- Right-click your project, and select
Export | Shared Ear File.
- On the Shared Ear Export page, click Browse to choose a destination folder for the EAR file.
- Select
Optimize for a specific server runtime to optimize server performance, or clear
Optimize for a specific server runtime if you do not want to optimize performance. Accept the default server runtime, or select a different runtime.
- Select
Overwrite existing file or clear
Overwrite existing file if you do not want to overwrite existent files.
- Click Finish.
- To import a module as a binary, follow these steps:
- Right-click your project, and select
Import | Shared Ear File.
- On the Shared Ear Import page, click Browse to locate the EAR file that you want to import.
- Select the
Ear project associated with the Ear file.
- Select the
Target runtime for your imported project.
- Click Finish.
Related concepts
Application Deployment Descriptor editor