Author: sathwik
Date: Mon Nov 17 07:41:58 2014
New Revision: 1640086

URL: http://svn.apache.org/r1640086
Log:
Addded a note for JNDI entry

Modified:
    ode/site/trunk/content/war-deployment.mdtext

Modified: ode/site/trunk/content/war-deployment.mdtext
URL: 
http://svn.apache.org/viewvc/ode/site/trunk/content/war-deployment.mdtext?rev=1640086&r1=1640085&r2=1640086&view=diff
==============================================================================
--- ode/site/trunk/content/war-deployment.mdtext (original)
+++ ode/site/trunk/content/war-deployment.mdtext Mon Nov 17 07:41:58 2014
@@ -28,14 +28,16 @@ The ODE war should have been copied to t
 
 2. Download latest bitronix archive from 
[here](http://docs.codehaus.org/display/BTM/Download).
 
-3. Copy these jars available in the bitronix archive to _/lib_ directory of 
Tomcat 7.
+3. Copy these jars available in the bitronix archive to _/lib_ directory of 
Tomcat 7.  
      -   btm-2.1.4.jar  
      -   btm-tomcat55-lifecycle-2.1.4.jar  
      -   geronimo-jta_1.1_spec-1.1.1.jar  
      -   slf4j-api-1.6.4.jar  
-     -   slf4j-jdk14-1.6.4.jar 
+     -   slf4j-jdk14-1.6.4.jar  
+
 
 4. Configure data sources.  
+
    Create a file name named _**resources.properties**_ under conf/ directory 
of tomcat with the below contents:
 
         :::properties
@@ -50,10 +52,12 @@ The ODE war should have been copied to t
         resource.ds2.allowLocalTransactions=true
         resource.ds2.shareTransactionConnections=true
 
-    Enter the appropriate mysql **user** and **password** in the properties 
file.
+    Enter the appropriate mysql **user** and **password** in the properties 
file.  
+
 
 5. Associate the datasource created in the previous step for ODE  
-Create a file named _**ode.xml**_ under conf/Catalina/localhost/ directory 
under tomcat with the below given contents:  
+
+   Create a file named _**ode.xml**_ under conf/Catalina/localhost/ directory 
under tomcat with the below given contents:  
 
         :::xml  
         <Context reloadable="true" crossContext="true">    
@@ -64,8 +68,7 @@ Create a file named _**ode.xml**_ under 
                uniqueName="jdbc/ode" />  
         </Context>  
 
-6. Change the web.xml of ODE.  
-Add these lines in the _**web.xml**_  
+6. Add the below lines in the _**web.xml**_  of ODE web application.
 
         :::xml  
         <resource-ref>  
@@ -75,7 +78,7 @@ Add these lines in the _**web.xml**_  
             <res-sharing-scope>Shareable</res-sharing-scope>  
         </resource-ref>  
 
-7. Remove jar file _geronimo-jta_1.1_spec-1.1.jar from ODE web application 
/lib_ directory
+7. Remove jar file _geronimo-jta_1.1_spec-1.1.jar_ from ODE web application 
_/lib_ directory
 
 8. Add the below lines to _**ode-axis2.properties**_
 
@@ -84,17 +87,9 @@ Add these lines in the _**web.xml**_  
         ode-axis2.db.mode=EXTERNAL
         ode-axis2.db.ext.dataSource=java:comp/env/jdbc/ode
 
-2. Add the following stanza to _conf/server.xml_ inside the <Host> element:
-
-        :::xml
-        <Context path="/ode" docBase="ode" debug="5" reloadable="true" 
crossContext="true">
-            <Resource name="jdbc/ODEDB" auth="Container" 
type="javax.sql.DataSource"
-                maxActive="100" maxIdle="30" maxWait="10000"
-                username="root" password="" 
driverClassName="com.mysql.jdbc.Driver"
-                url="jdbc:mysql://localhost:3306/ode?autoReconnect=true"/>
-        </Context>
+   Note that the value for JNDI entry _ode-axis2.db.ext.dataSource_ should 
match the entry _resource.ds2.driverProperties.url_
 
-3. Make sure that MySQL is started and the [ODE 
schema](/resources/ode_openjpa_mysql-1.3.2.sql) has been loaded in a _ode_ 
database.
+9. Make sure that MySQL is started and the [ODE 
schema](/resources/ode_openjpa_mysql-1.3.2.sql) has been loaded in a _ode_ 
database.
 
         :::text
         $ mysql -u root
@@ -102,12 +97,6 @@ Add these lines in the _**web.xml**_  
         mysql> exit
         $ mysql -u root ode < ode_openjpa_mysql-1.3.2.sql
 
-4. Add a file named _ode-axis2.properties_ under _webapps/ode/WEB-INF/conf_ 
with the following content:
-
-        :::properties
-        ode-axis2.db.mode=EXTERNAL
-        ode-axis2.db.ext.dataSource=java:comp/env/jdbc/ODEDB
-
 
 You're done!
 


Reply via email to