Rebuilding the Projects and Redeploying the Application

Use

The next step is to make your changes available on the J2EE Engine by rebuilding and redeploying the application.

Prerequisites

The J2EE perspective is displayed in the SAP NetWeaver Developer Studio.

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

You have completed the steps for requiring authentication, creating the permission classes and checking the permissions in the application.

All modified files are saved.

 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, Web, and if applicable, the Web Dynpro projects.

       2.      You still have to rebuild the application archive. Select the J2EE_QuickCarRentalEar project, open the context menu and choose Build Application Archive.

       3.      Expand the J2EE_QuickCarRentalEar project.

       4.      Select the J2EE_QuickCarRentalEar.ear file, open the context menu and choose Deploy to J2EE engine.

The status of deployment appears in the Deploy Output View pane.

       5.      If you are working with the Web Dynpro tutorial, then deploy the Web Dynpro application:

                            a.      Change to the Web Dynpro perspective.

                            b.      Choose the Web Dynpro Explorer.

                            c.      Open the context menu for the TutWD_CarRental ® Web Dynpro ® Applications. project and choose Deploy.

Result

Your application is deployed to the J2EE Engine.

Next Step:

You now have to create the actions that correspond to the permissions that are checked in the application.

If you are working with the J2EE-based tutorial, see Defining Actions in the actions.xml File.

If you are working with the Web Dynpro tutorial, see Defining Actions in the actions.xml File.