You can add binary modules into and remove binary modules
from your workspace.
Before you begin
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.
About this task
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.
Procedure
- 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 .
- Right-click your project, and select .
- 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.
Note: If you have selected WebSphere® Application
Server as your runtime, the Optimize for a specific server
runtime has no effect on your deployment, because this
feature is not implemented for WebSphere Application
Server.
- 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 .
- 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.