You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2012/11/12 12:49:01 UTC
svn commit: r1408257 - /openejb/site/trunk/content/datasource-config.mdtext
Author: dblevins
Date: Mon Nov 12 11:49:01 2012
New Revision: 1408257
URL: http://svn.apache.org/viewvc?rev=1408257&view=rev
Log:
link to common-datasource-configurations.mdtext
Modified:
openejb/site/trunk/content/datasource-config.mdtext
Modified: openejb/site/trunk/content/datasource-config.mdtext
URL: http://svn.apache.org/viewvc/openejb/site/trunk/content/datasource-config.mdtext?rev=1408257&r1=1408256&r2=1408257&view=diff
==============================================================================
--- openejb/site/trunk/content/datasource-config.mdtext (original)
+++ openejb/site/trunk/content/datasource-config.mdtext Mon Nov 12 11:49:01 2012
@@ -1,6 +1,5 @@
Title: DataSource Configuration
-
A DataSource can be declared via xml in the `<tomee-home>/conf/tomee.xml` file or in a `WEB-INF/resources.xml` file using a declaration like the following. All properties in the element body are optional.
<Resource id="myDataSource" type="javax.sql.DataSource">
@@ -65,6 +64,9 @@ Alternatively, a DataSource can be decla
myDataSource.validationQuery =
Properties and xml can be mixed. Properties will override the xml allowing for easy configuration change without the need for ${} style variable substitution. Properties are not case sensitive. If a property is specified that is not supported by the declared DataSource a warning will be logged. If a DataSource is needed by the application and one is not declared, TomEE will create one dynamically using default settings. Multiple DataSource declarations are allowed.
+
+See the [Common DataSource Configurations](common-datasource-configurations.html) page for examples of configuring datasources for Derby, MySQL, Oracle and other common databases.
+
# Supported Properties
<table>
<tr>
@@ -454,4 +456,3 @@ destroyed and removed from the pool
NOTE - for a true value to have any effect, the
timeBetweenEvictionRunsMillis property must be a positive
number and the ValidationQuery parameter must be set.
-