You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by de...@apache.org on 2013/11/27 09:24:30 UTC

svn commit: r1545959 - /incubator/olingo/site/trunk/content/doc/tutorials/CreateWebApp.mdtext

Author: deepa
Date: Wed Nov 27 08:24:30 2013
New Revision: 1545959

URL: http://svn.apache.org/r1545959
Log:
CMS commit to olingo by deepa

Modified:
    incubator/olingo/site/trunk/content/doc/tutorials/CreateWebApp.mdtext

Modified: incubator/olingo/site/trunk/content/doc/tutorials/CreateWebApp.mdtext
URL: http://svn.apache.org/viewvc/incubator/olingo/site/trunk/content/doc/tutorials/CreateWebApp.mdtext?rev=1545959&r1=1545958&r2=1545959&view=diff
==============================================================================
--- incubator/olingo/site/trunk/content/doc/tutorials/CreateWebApp.mdtext (original)
+++ incubator/olingo/site/trunk/content/doc/tutorials/CreateWebApp.mdtext Wed Nov 27 08:24:30 2013
@@ -23,9 +23,9 @@ The table gives the list of Maven depend
 
 *Note*: The following dependencies are applicable for an application using EclipseLink as the JPA Provider and HSQLDB as the database. However, you are free to use any JPA provider (like Hibernate, OpenJPA and so on) and database of your choice.
 
+![alt text][1]
 
-
-###### Create a Dynamic Web Application project from scratch:
+##### Create a Dynamic Web Application project from scratch:
 
 1. In the command prompt, enter the maven command given here (change the DgroupId and DartifactId as per your requirement)
 
@@ -35,7 +35,7 @@ The table gives the list of Maven depend
 	
 2. Create a folder by name 'java' in the path 'src/main/'.
 
-###### Tailor POM.xml 
+##### Tailor POM.xml 
 
 POM.xml should be modified for adding dependencies like OData Library (Java) and OData JPA Processor Library. Add a dependency to the project that contains JPA models. Open POM.xml and replace the existing content with the following:
 
@@ -106,7 +106,7 @@ POM.xml should be modified for adding de
            </build>
          </project>
 
-###### Implement an OData Service
+##### Implement an OData Service
 
 The project is now ready to expose OData services. Service Factory provides a means for initializing Entity Data Model (EDM) Provider and OData JPA Processors. Following are the steps for implementing a Service Factory:
 
@@ -119,7 +119,7 @@ The project is now ready to expose OData
 		oDataJPAContext.setEntityManagerFactory(JPAEntityManagerFactory.getEntityManagerFactory(PUNIT_NAME));
 		oDataJPAContext.setPersistenceUnitName(PUNIT_NAME);
 
-###### Configure the Web Application
+##### Configure the Web Application
 
 1. Configure the web application as shown below by adding the following servlet configuration to web.xml. The Service factory which was implemented is configured in the web.xml of the ODataApplication as one of the init parameters.
 2. Replace in the following XML with the class name you created in the previous step:
@@ -144,3 +144,6 @@ The project is now ready to expose OData
 		  
 After the implementation, test the web application using http://localhost:8080/olingo.odata2.jpa.processor.ref.web/SalesOrderProcessing.svc
 	
+
+
+  [1]: /img/JPALibTab.JPG
\ No newline at end of file