Entering content frame

Procedure documentation Assembling the Application Locate the document in its SAP Library structure

Use

To prepare your application for deployment, you have to:

·        Build the WAR file

·        Create an Enterprise Application Project and assemble the EAR file

Procedure

Building the WAR

...

       1.      In the J2EE Development perspective, extend the GettingStartedJDOWeb node and open web.xml.

       2.      Go to the Mapping tab and choose Add under the Servlet mappings field. Add the ProcessInput servlet and enter ProcessInput in the URL Pattern field.

       3.      Go to the Resource tab. Choose Resource entries and then Add. Enter the following values:

This graphic is explained in the accompanying text

       4.      Save and close the XML file.

       5.      From the context menu of the project, choose Build WAR File.

 

Assembling the EAR

...

       1.      Choose File  ®  New  ® Project. Select J2EE in the left-hand pane, and Enterprise Application Project in the right-hand pane.

       2.      Choose Next.

       3.      Enter a name for the project – for example, GettingStartedJDOEar. Choose Next.

       4.      In the Referenced Projects field, choose GettingStartedJDOWeb and then choose Finish.

       5.      Extend the GettingStartedJDOEar node and open application.xml.

       6.      On the General tab, enter GettingStartedJDO as a display name. On the Modules tab enter gettingstarted-jdo as a context root.

       7.      Save and close the XML file.

       8.      Open application-j2ee-engine.xml.

       9.      On the General tab, select References and choose Add  ® Create new.

   10.      Enter the following values:

This graphic is explained in the accompanying text

   11.      Save and close the XML file.

   12.      From the context menu of the GettingStartedJDOEar project, choose Build EAR File. The system informs you if the process finished successfully.

Result

Now you can deploy and run the application.

 

Leaving content frame