Building an Enterprise Application
See Also
You can build the main project from the main menu or an individual project from its popup menu.
To build the main enterprise application project and its modules:
- Choose Run > Build Main Project (F11) from the main menu.
To build an individual enterprise application project and its modules:
- Right-click the project's node in the Projects window and choose Build.
When you build an EJB module as part of an enterprise application, the IDE
does the following:
- Compiles the classes for each of the enterprise application's modules to
the module projects' build/ear-module folder.
- Places any JAR files, libraries, or directories that are on the classpath
of the module projects and are scheduled for inclusion in deployment in the
enterprise project's build folder.
- Builds each module's JAR file or WAR file to the module project's dist
folder and copies it to the enterprise application project's build
folder. The module JAR files and WAR files do not contain any of the module's
classpath elements.
- Puts a Class-path entry in each of the modules' manifest file for
all included JAR files and puts a . entry if there is at least one
directory on the project's classpath scheduled for inclusion in deployment.
This mechanism ensures that the JAR files and directories can be used from
the modules even if they reside in the EAR project and not in the modules
themselves.
- Builds the enterprise application EAR file to the enterprise application
project's dist folder.
- See Also
- About Enterprise Applications
- Verifying an Enterprise Application
- Deploying an Enterprise Application
- Building an EJB Module
Legal Notices