]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-225 forgot to add datasource config xml.
authorSanjay Dalal <sanjay.dalal@berkeley.edu>
Mon, 29 Jun 2009 17:50:04 +0000 (17:50 +0000)
committerSanjay Dalal <sanjay.dalal@berkeley.edu>
Mon, 29 Jun 2009 17:50:04 +0000 (17:50 +0000)
src/main/resources/config/cspace-ds.xml [new file with mode: 0644]

diff --git a/src/main/resources/config/cspace-ds.xml b/src/main/resources/config/cspace-ds.xml
new file mode 100644 (file)
index 0000000..98038fa
--- /dev/null
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- $Id: mysql-ds.xml 71535 2008-04-01 07:05:03Z adrian@jboss.org $ -->
+<!--  Datasource config for MySQL using 3.0.9 available from:
+http://www.mysql.com/downloads/api-jdbc-stable.html
+-->
+
+<datasources>
+  <local-tx-datasource>
+    <jndi-name>CspaceDS</jndi-name>
+    <connection-url>jdbc:mysql://localhost:3306/cpsace</connection-url>
+    <driver-class>com.mysql.jdbc.Driver</driver-class>
+    <user-name>test</user-name>
+    <password>test</password>
+    <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
+    <!-- should only be used on drivers after 3.22.1 with "ping" support
+    <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker</valid-connection-checker-class-name>
+    -->
+    <!-- sql to call when connection is created
+    <new-connection-sql>some arbitrary sql</new-connection-sql>
+      -->
+    <!-- sql to call on an existing pooled connection when it is obtained from pool - MySQLValidConnectionChecker is preferred for newer drivers
+    <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
+      -->
+
+    <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
+    <metadata>
+       <type-mapping>mySQL</type-mapping>
+    </metadata>
+  </local-tx-datasource>
+</datasources>
+