Show TOC Start of Content Area

Procedure documentation Deploying and Running the Application  Locate the document in its SAP Library structure

Use

The last step in the development of the application is its deployment and testing. In this procedure you have to:

·        Deploy the database tables

·        Deploy the application EAR

·        Run the application

Prerequisites

·        You must have entered the J2EE Engine settings.

To set up the J2EE Engine, go to Window   Preferences   SAP J2EE Engine. You can set either remote or local installation. The default message server port is 3601.

·        You must have launched the J2EE Engine. For more information, see Starting and Stopping the SAP System.

Procedure

...

       1.      Deploy the database tables

                            a.      In the Dictionary perspective, open the context menu of the GettingStartedPersistenceDic project.

                            b.      Choose Create Archive.

                            c.      In the context menu of the project choose Deploy.

Note

The tables are the same as the ones used in Getting Started with Relational Persistence. If you have already tried the relational persistence example, and have deployed the tables, you can skip this step.

       2.      Deploy the application EAR:

                            a.      In the J2EE Development perspective, extend the GettingStartedJDOEar project node.

                            b.      Open the context menu of GettingStartedJDOEar.ear and choose Deploy to J2EE engine.

                            c.      The application starts automatically after it is deployed.

       3.      Test the application:

                            a.      Invoke the application in your browser:
http://<yourhost>:<HTTP port>/<Context Root>/

Example

http://localhost:50000/gettingstarted-jdo/

This graphic is explained in the accompanying text

                            b.      Create a department:

                                                  i.       Enter a Department ID, such as 1.

                                                ii.       Choose New Department and enter a name.

                                               iii.       Choose Submit.

                            c.      Create an employee:

                                                  i.       Enter the ID of the department you have created.

                                                ii.       Choose New Employee and enter the required data.

                                               iii.       Choose Submit.

                            d.      List all employees in a department.

                                                  i.       Enter the ID of an existing department.

                                                ii.       Choose List Employees.

                                               iii.       Choose Submit.

 

 

End of Content Area