Rebuilding and Deploying the Application

Use

After you have created the J2EE security roles for the JSP and the EJBs, you can rebuild and deploy your application.

Prerequisites

The quick car rental application’s projects are displayed in the J2EE Explorer.

You have completed the steps for specifying the authentication methods, the security role information, and the security constraints.

You have saved all files.

 An asterisk (*) appears next to any file names for files that have not been saved.

The J2EE Engine and SDM server are running and you can connect to the J2EE Engine from the Developer Studio.

Procedure

...

       1.      Choose Project ® Rebuild All.

This step rebuilds the EJB and Web projects.

       2.      You still have to rebuild the EAR file. Select the J2EE_QuickCarRentalEar project, open the context menu using the right mouse button, and choose Build Application Archive.

       3.      Confirm the message that the EAR has been built with OK.

       4.      Expand the J2EE_QuickCarRentalEar project.

       5.      To deploy the EAR file, select the QuickCarRentalEar.ear file, open the context menu and choose Deploy to J2EE engine.

       6.      If prompted, enter the SDM password.

A message appears in the Deploy Output View section indicating the status of deployment.

Next Step:

Your application is now available on the J2EE Engine. However, before you can test the access protection, you have to create the test users and assign them the appropriate roles.

See Creating the Users.