Assembling the Application
To prepare your application for deployment, you have to:
· Build the WAR file
· Create an Enterprise Application Project and assemble the EAR file
...
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 mappingsfield. 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:
Resource Reference Parameters
Parameter Name |
Value |
Resource Reference Name |
jdo/defaultPMF |
Resource Type |
javax.resource.cci.ConnectionFactory |
Resource Authentication |
Container |
Resource Sharing Scope (checked) |
Shareable |
4. Save and close the XML file.
5. From the context menu of the project, choose Build WEB Archive.
...
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:
Reference Parameters
Parameter Name |
Value |
Reference target |
com.sap.jdo |
Reference type |
hard |
Reference target type |
application |
Provider name |
sap.com |
11. Save and close the XML file.
12. From the context menu of the GettingStartedJDOEar project, choose Build Application Archive. The system informs you if the process finished successfully.
Now you can deploy and run the application.