[jboss-cvs] JBossAS SVN: r92580 - branches/JBPAPP_5_0/connector/src/etc/example-config.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Aug 19 11:26:55 EDT 2009
Author: istudens at redhat.com
Date: 2009-08-19 11:26:55 -0400 (Wed, 19 Aug 2009)
New Revision: 92580
Added:
branches/JBPAPP_5_0/connector/src/etc/example-config/mysql-xa-ds.xml
branches/JBPAPP_5_0/connector/src/etc/example-config/postgres-xa-ds.xml
Modified:
branches/JBPAPP_5_0/connector/src/etc/example-config/db2-jcc-xa-ds.xml
branches/JBPAPP_5_0/connector/src/etc/example-config/mssql-xa-ds.xml
branches/JBPAPP_5_0/connector/src/etc/example-config/sybase-xa-ds.xml
Log:
updated the XA datasource examples, JBPAPP-2575
Modified: branches/JBPAPP_5_0/connector/src/etc/example-config/db2-jcc-xa-ds.xml
===================================================================
--- branches/JBPAPP_5_0/connector/src/etc/example-config/db2-jcc-xa-ds.xml 2009-08-19 15:16:58 UTC (rev 92579)
+++ branches/JBPAPP_5_0/connector/src/etc/example-config/db2-jcc-xa-ds.xml 2009-08-19 15:26:55 UTC (rev 92580)
@@ -15,11 +15,15 @@
<xa-datasource-property name="User">your_user</xa-datasource-property>
<xa-datasource-property name="Password">your_password</xa-datasource-property>
+ <!-- If driverType 4 is used, the following tags are needed -->
+ <xa-datasource-property name="ServerName">your_server_name</xa-datasource-property>
+ <xa-datasource-property name="DriverType">4</xa-datasource-property>
+ <track-connection-by-tx></track-connection-by-tx>
+
<!-- Note, as opposed to the Type2 driver, DB2 Type 4 requires the PortNumber. By default this is 50000-->
<xa-datasource-property name="PortNumber">your_port_number</xa-datasource-property>
- <!-- Must be set if using multiple DB2 XA resources in same transaction -->
-
+ <!-- Must be set if using multiple DB2 XA resources in same transaction -->
<isSameRM-override-value>false</isSameRM-override-value>
<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml -->
@@ -29,4 +33,4 @@
</xa-datasource>
-</datasources>
\ No newline at end of file
+</datasources>
Modified: branches/JBPAPP_5_0/connector/src/etc/example-config/mssql-xa-ds.xml
===================================================================
--- branches/JBPAPP_5_0/connector/src/etc/example-config/mssql-xa-ds.xml 2009-08-19 15:16:58 UTC (rev 92579)
+++ branches/JBPAPP_5_0/connector/src/etc/example-config/mssql-xa-ds.xml 2009-08-19 15:26:55 UTC (rev 92580)
@@ -29,9 +29,8 @@
<xa-datasource-property name="ServerName">myserver</xa-datasource-property>
<xa-datasource-property name="DatabaseName">mydatabase</xa-datasource-property>
<xa-datasource-property name="SelectMethod">cursor</xa-datasource-property>
-<!-- not sure if these should be here-->
- <user-name>x</user-name>
- <password>y</password>
+ <xa-datasource-property name="User">myuser</xa-datasource-property>
+ <xa-datasource-property name="Password">mypassword</xa-datasource-property>
<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
<metadata>
Added: branches/JBPAPP_5_0/connector/src/etc/example-config/mysql-xa-ds.xml
===================================================================
--- branches/JBPAPP_5_0/connector/src/etc/example-config/mysql-xa-ds.xml (rev 0)
+++ branches/JBPAPP_5_0/connector/src/etc/example-config/mysql-xa-ds.xml 2009-08-19 15:26:55 UTC (rev 92580)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- $Id: mysql-ds.xml 88948 2009-05-15 14:09:08Z jesper.pedersen $ -->
+<!-- Datasource config for MySQL using 3.0.9 available from:
+http://www.mysql.com/downloads/api-jdbc-stable.html
+-->
+
+<datasources>
+ <xa-datasource>
+ <jndi-name>MysqlDS</jndi-name>
+ <track-connection-by-tx>true</track-connection-by-tx>
+ <xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
+ <xa-datasource-property name="ServerName">server_name</xa-datasource-property>
+ <xa-datasource-property name="DatabaseName">database_name</xa-datasource-property>
+ <xa-datasource-property name="User">user</xa-datasource-property>
+ <xa-datasource-property name="Password">password</xa-datasource-property>
+
+ <!-- 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>
+ </xa-datasource>
+</datasources>
+
Added: branches/JBPAPP_5_0/connector/src/etc/example-config/postgres-xa-ds.xml
===================================================================
--- branches/JBPAPP_5_0/connector/src/etc/example-config/postgres-xa-ds.xml (rev 0)
+++ branches/JBPAPP_5_0/connector/src/etc/example-config/postgres-xa-ds.xml 2009-08-19 15:26:55 UTC (rev 92580)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- ===================================================================== -->
+<!-- -->
+<!-- JBoss Server Configuration -->
+<!-- -->
+<!-- ===================================================================== -->
+
+<datasources>
+ <xa-datasource>
+ <jndi-name>PostgresDS</jndi-name>
+ <track-connection-by-tx>true</track-connection-by-tx>
+ <xa-datasource-class>org.postgresql.xa.PGXADataSource</xa-datasource-class>
+ <xa-datasource-property name="ServerName">server_name</xa-datasource-property>
+ <xa-datasource-property name="PortNumber">5432</xa-datasource-property>
+ <xa-datasource-property name="DatabaseName">database_name</xa-datasource-property>
+ <xa-datasource-property name="User">user</xa-datasource-property>
+ <xa-datasource-property name="Password">password</xa-datasource-property>
+
+ <!-- sql to call when connection is created. Can be anything, select 1 is valid for PostgreSQL
+ <new-connection-sql>select 1</new-connection-sql>
+ -->
+
+ <!-- sql to call on an existing pooled connection when it is obtained from pool. Can be anything, select 1 is valid for PostgreSQL
+ <check-valid-connection-sql>select 1</check-valid-connection-sql>
+ -->
+
+ <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
+ <metadata>
+ <type-mapping>PostgreSQL 7.2</type-mapping>
+ </metadata>
+
+ </xa-datasource>
+</datasources>
Modified: branches/JBPAPP_5_0/connector/src/etc/example-config/sybase-xa-ds.xml
===================================================================
--- branches/JBPAPP_5_0/connector/src/etc/example-config/sybase-xa-ds.xml 2009-08-19 15:16:58 UTC (rev 92579)
+++ branches/JBPAPP_5_0/connector/src/etc/example-config/sybase-xa-ds.xml 2009-08-19 15:26:55 UTC (rev 92580)
@@ -36,8 +36,13 @@
<xa-datasource-property name="ServerName">myserver</xa-datasource-property>
<xa-datasource-property name="PortNumber">4100</xa-datasource-property>
<xa-datasource-property name="DatabaseName">mydatabase</xa-datasource-property>
+
<!-- Use the security domain defined in conf/login-config.xml -->
<security-domain>SybaseXADSRealm</security-domain>
+ <!-- or User/Password properties -->
+ <xa-datasource-property name="User">user</xa-datasource-property>
+ <xa-datasource-property name="Password">password</xa-datasource-property>
+
<min-pool-size>1</min-pool-size>
<max-pool-size>20</max-pool-size>
<idle-timeout-minutes>15</idle-timeout-minutes>
More information about the jboss-cvs-commits
mailing list