cziegeler 01/08/15 06:07:23
Modified: xdocs datasources.xml
Log:
Updated the datasources docs a little bit, now the package names are correct
Revision Changes Path
1.5 +23 -39 xml-cocoon2/xdocs/datasources.xml
Index: datasources.xml
===================================================================
RCS file: /home/cvs/xml-cocoon2/xdocs/datasources.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- datasources.xml 2001/07/28 03:13:53 1.4
+++ datasources.xml 2001/08/15 13:07:22 1.5
@@ -62,48 +62,24 @@
</p>
<source>
<![CDATA[
-<component name="org.apache.avalon.util.datasource.DataSourceComponentSelector"
- class="org.apache.cocoon.CocoonComponentSelector">
+ <datasources>
+ <jdbc name="MyConnectionName">
- <component-instance name="MyConnectionName"
- class="org.apache.avalon.util.datasource.JdbcDataSource">
- <pool-controller min="5" max="10"/>
- <dburl>jdbc:oracle:thin:@localhost:1521:mydatabase</dburl>
- <user>mylogin</user>
- <password>myPassword</password>
- </component-instance>
-
- <component-instance name="MyJ2eeConnection"
- class="org.apache.avalon.util.datasource.J2eeDataSource">
- <dbname>cocoonDB</dbname>
- </component-instance>
-</component>
+ <pool-controller min="5" max="10"/>
+ <dburl>jdbc:oracle:thin:@localhost:1521:mydatabase</dburl>
+ <user>mylogin</user>
+ <password>myPassword</password>
+ </jdbc>
+ <j2ee name="MyJ2eeConnection">
+ <dbname>cocoonDB</dbname>
+ </j2ee>
+ </datasources>
]]>
</source>
- <p>
- The following alternative snippet makes things even easier for you.
- </p>
- <source>
- <![CDATA[
-<datasources>
- <component-instance name="MyConnectionName"
- class="org.apache.avalon.util.datasource.JdbcDataSource">
- <pool-controller min="5" max="10"/>
- <dburl>jdbc:oracle:thin:@localhost:1521:mydatabase</dburl>
- <user>mylogin</user>
- <password>myPassword</password>
- </component-instance>
- <component-instance name="MyJ2eeConnection"
- class="org.apache.avalon.util.datasource.J2eeDataSource">
- <dbname>cocoonDB</dbname>
- </component-instance>
-</datasources>
- ]]>
- </source>
<s3 title="The JDBC Connection Properties">
<p>
- The JDBC connection has up to four different properties--but only one
+ The JDBC connection has up to five different properties--but only one
is absolutely required.
</p>
<ul>
@@ -131,8 +107,16 @@
max: The maximum number of connections the pool will have
created at the same time. Defaults to three (3).
</li>
+ <li>
+ oradb: If you have an Oracle database, you should add the attribute
+ "oradb" and set it to true.
+ </li>
</ul>
</li>
+ <li>
+ auto-commit: If you need to ensure an autocommit is set to true or
+ false, then create the "auto-commit" element.
+ </li>
</ul>
</s3>
<s3 title="The J2EE Connection Property">
@@ -154,10 +138,10 @@
</p>
<source>
<![CDATA[
-import org.apache.avalon.ComponentManager;
-import org.apache.avalon.ComponentSelector;
+import org.apache.avalon.framework.component.ComponentManager;
+import org.apache.avalon.framework.component.ComponentSelector;
import org.apache.cocoon.Roles;
-import org.apache.cocoon.component.datasource.DataSourceComponent;
+import org.apache.avalon.excalibur.datasource.DataSourceComponent;
import java.sql.Connection;
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]