[jboss-cvs] JBossAS SVN: r71536 - trunk/connector/src/etc/example-config.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Apr 1 03:05:26 EDT 2008


Author: adrian at jboss.org
Date: 2008-04-01 03:05:26 -0400 (Tue, 01 Apr 2008)
New Revision: 71536

Added:
   trunk/connector/src/etc/example-config/db2-jcc-xa-ds.xml
Modified:
   trunk/connector/src/etc/example-config/db2-xa-ds.xml
   trunk/connector/src/etc/example-config/mssql-ds.xml
   trunk/connector/src/etc/example-config/mssql-xa-ds.xml
Log:
Sync jca example config between 4.2 and head

Added: trunk/connector/src/etc/example-config/db2-jcc-xa-ds.xml
===================================================================
--- trunk/connector/src/etc/example-config/db2-jcc-xa-ds.xml	                        (rev 0)
+++ trunk/connector/src/etc/example-config/db2-jcc-xa-ds.xml	2008-04-01 07:05:26 UTC (rev 71536)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<datasources>
+    <!--
+        IBM DB2 XA driver
+        db2jcc.jar
+    -->
+    
+    <xa-datasource>
+        <jndi-name>DB2XADS</jndi-name>
+       
+        <xa-datasource-class>com.ibm.db2.jcc.DB2XADataSource</xa-datasource-class>
+        
+        <xa-datasource-property name="DatabaseName">your_database_name</xa-datasource-property>
+        <xa-datasource-property name="User">your_user</xa-datasource-property>
+        <xa-datasource-property name="Password">your_password</xa-datasource-property>
+        
+        <!-- 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 -->
+        
+        <isSameRM-override-value>false</isSameRM-override-value>    
+        
+        <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml -->
+        <metadata>
+            <type-mapping>DB2</type-mapping>
+        </metadata>
+    
+    </xa-datasource>
+    
+</datasources>
\ No newline at end of file

Modified: trunk/connector/src/etc/example-config/db2-xa-ds.xml
===================================================================
--- trunk/connector/src/etc/example-config/db2-xa-ds.xml	2008-04-01 07:05:03 UTC (rev 71535)
+++ trunk/connector/src/etc/example-config/db2-xa-ds.xml	2008-04-01 07:05:26 UTC (rev 71536)
@@ -17,6 +17,8 @@
 
    <xa-datasource>
      <jndi-name>DB2XADS</jndi-name>
+     <track-connection-by-tx/>
+     <isSameRM-override-value>false</isSameRM-override-value>
 
      <xa-datasource-class>COM.ibm.db2.jdbc.DB2XADataSource</xa-datasource-class>
      <xa-datasource-property name="DatabaseName">yout_database_name</xa-datasource-property>

Modified: trunk/connector/src/etc/example-config/mssql-ds.xml
===================================================================
--- trunk/connector/src/etc/example-config/mssql-ds.xml	2008-04-01 07:05:03 UTC (rev 71535)
+++ trunk/connector/src/etc/example-config/mssql-ds.xml	2008-04-01 07:05:26 UTC (rev 71536)
@@ -9,16 +9,17 @@
 <!-- $Id$ -->
 
   <!-- ======================================================================-->
-  <!-- New ConnectionManager setup for Microsoft SQL Server 2000  driver     -->
-  <!-- You may download the latest Microsoft JDBC driver from *Microsoft*    -->
-  <!-- http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/MSDN-FILES/027/001/779/msdncompositedoc.xml&frame=true -->
+  <!-- New ConnectionManager setup for Microsoft SQL Server 2005  driver     -->
+  <!-- Further information about the Microsoft JDBC Driver version 1.1      -->
+  <!-- can be found here:                                                   -->
+  <!-- http://msdn2.microsoft.com/en-us/library/aa496082.aspx               -->  
   <!-- ===================================================================== -->
 
 <datasources>
   <local-tx-datasource>
     <jndi-name>MSSQLDS</jndi-name>
     <connection-url>jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=MyDatabase</connection-url>
-    <driver-class>com.microsoft.jdbc.sqlserver.SQLServerDriver</driver-class>
+    <driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>
     <user-name>x</user-name>
     <password>y</password>
         <!-- sql to call when connection is created

Modified: trunk/connector/src/etc/example-config/mssql-xa-ds.xml
===================================================================
--- trunk/connector/src/etc/example-config/mssql-xa-ds.xml	2008-04-01 07:05:03 UTC (rev 71535)
+++ trunk/connector/src/etc/example-config/mssql-xa-ds.xml	2008-04-01 07:05:26 UTC (rev 71536)
@@ -8,12 +8,15 @@
 
 <!-- $Id$ -->
   <!-- ==================================================================== -->
-  <!-- ConnectionManager setup for xa Microsoft SQL Server 2000, using      -->
+  <!-- ConnectionManager setup for xa Microsoft SQL Server 2005, using      -->
   <!-- Microsoft's JDBC driver.                                             -->
   <!-- Thanks to Benjamin Geer  <benjamin.geer at misys.com>                   -->
   <!-- Be sure to set the JndiName property to the name you want to look up -->
   <!-- the datasource under and set the location of your database in        -->
   <!-- the xa-datasource-property section.                                  -->
+  <!-- Further information about the Microsoft JDBC Driver version 1.1      -->
+  <!-- can be found here:                                                   -->
+  <!-- http://msdn2.microsoft.com/en-us/library/aa496082.aspx               -->
   <!-- ==================================================================== -->
 
 
@@ -22,7 +25,7 @@
     <jndi-name>MSSQLXADS</jndi-name>
     <track-connection-by-tx/>
     <isSameRM-override-value>false</isSameRM-override-value>
-    <xa-datasource-class>com.microsoft.jdbcx.sqlserver.SQLServerDataSource</xa-datasource-class>
+    <xa-datasource-class>com.microsoft.sqlserver.jdbc.SQLServerXADataSource</xa-datasource-class>
     <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>




More information about the jboss-cvs-commits mailing list