Author: markt
Date: Sun Jul 15 13:52:10 2007
New Revision: 556449
URL: http://svn.apache.org/viewvc?view=rev&rev=556449
Log:
Remove references to adding stuff to server.xml and cross-reference the context
docs instead.
Modified:
tomcat/container/tc5.5.x/webapps/docs/jndi-datasource-examples-howto.xml
Modified:
tomcat/container/tc5.5.x/webapps/docs/jndi-datasource-examples-howto.xml
URL:
http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/webapps/docs/jndi-datasource-examples-howto.xml?view=diff&rev=556449&r1=556448&r2=556449
==============================================================================
--- tomcat/container/tc5.5.x/webapps/docs/jndi-datasource-examples-howto.xml
(original)
+++ tomcat/container/tc5.5.x/webapps/docs/jndi-datasource-examples-howto.xml
Sun Jul 15 13:52:10 2007
@@ -192,15 +192,10 @@
</source>
</p>
-<h3>2. server.xml configuration</h3>
+<h3>2. Context configuration</h3>
<p>Configure the JNDI DataSource in Tomcat by adding a declaration for your
-resource to <code>$CATALINA_HOME/conf/server.xml</code>.</p>
-<p>Add this in between the <code></Context></code> tag of the examples
-context and the <code></Host></code> tag closing the localhost
definition.
-If there is no such tag, you can add one as illustrated in the
-<a href="config/context.html">Context</a> and
-<a href="config/host.html">Host</a> configuration references, and repeated
below
-for your convenience.
+resource to your <a href="config/context.html">Context</a>.</p>
+<p>For example:
<source>
<Context path="/DBTest" docBase="DBTest"
@@ -316,22 +311,19 @@
extension. Since jarfiles are zipfiles, there is no need to unzip and jar these
files - a simple rename will suffice.</p>
-<p>Some early versions of Tomcat 4.0 when used with JDK 1.4 will not load
-classes12.zip unless you unzip the file, remove the <code>javax.sql.*</code>
-class heirarchy and rejar.</p>
-
<p>For Oracle 9i onwards you should use <code>oracle.jdbc.OracleDriver</code>
rather than <code>oracle.jdbc.driver.OracleDriver</code> as Oracle have stated
that <code>oracle.jdbc.driver.OracleDriver</code> is deprecated and support
for this driver class will be discontinued in the next major release.
</p>
-<h3>1. server.xml configuration</h3>
+<h3>1. Context configuration</h3>
<p>In a similar manner to the mysql config above, you will need to define your
-Datasource in your server.xml file. Here we define a Datasource called myoracle
-using the thin driver to connect as user scott, password tiger to the sid
-called mysid. (Note: with the thin driver this sid is not the same as the
-tnsname). The schema used will be the default schema for the user scott.</p>
+Datasource in your <a href="config/context.html">Context</a>. Here we define a
+Datasource called myoracle using the thin driver to connect as user scott,
+password tiger to the sid called mysid. (Note: with the thin driver this sid is
+not the same as the tnsname). The schema used will be the default schema for
the
+user scott.</p>
<p>Use of the OCI driver should simply involve a changing thin to oci in the
URL string.
<source>
@@ -344,7 +336,7 @@
</p>
<h3>2. web.xml configuration</h3>
-<p>You should ensure that you respect the elemeent ordering defined by the DTD
when you
+<p>You should ensure that you respect the element ordering defined by the DTD
when you
create you applications web.xml file.</p>
<source>
<resource-ref>
@@ -407,12 +399,10 @@
not visible to other Tomcat applications. This method is less invasive to your
Tomcat installation.
</p>
-
+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
<p>
-Create a resource definition file for your application defining the
-datasource. This file must have the same name as your application, so if
-your application deploys as <code>someApp.war</code>, this filename must
-be <code>someApp.xml</code>. This file should look something like the
following.
+Create a resource definition for your <a
href="config/context.html">Context</a>.
+The Context element should look something like the following.
</p>
<source>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]