Creating an Ear File

Prerequisites

The structure of your Enterprise Application project QuickCarRentalEar is currently displayed in the J2EE Explorer.

Procedure

       1.      If necessary, choose the menu path Project ® Rebuild All to rebuild all projects.

       2.      Select project node QuickCarRentalEar again and open the context menu.

       3.      Choose Build Application Archive.

       4.      Choose OK to confirm the message saying that files were generated successfully.

Result

The archive file QuickCarRentalEar.ear has been created. It contains all the Web resources, the EJBs, and the auxiliary classes, along with the DataSource alias and the two deployment descriptors from the Enterprise Application project. The archive file is added to the project structure.

Next step:

Deploying an EAR