[jboss-svn-commits] JBL Code SVN: r30420 - labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/jdbc-resource/xa.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Dec 1 12:44:45 EST 2009


Author: whitingjr
Date: 2009-12-01 12:44:45 -0500 (Tue, 01 Dec 2009)
New Revision: 30420

Modified:
   labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/jdbc-resource/xa/datasource.properties
Log:
Changed configuration to support xa driver connection pooling. Uses property resolving to load in vendor specific set of xml/properties.


Modified: labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/jdbc-resource/xa/datasource.properties
===================================================================
--- labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/jdbc-resource/xa/datasource.properties	2009-12-01 17:43:42 UTC (rev 30419)
+++ labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/jdbc-resource/xa/datasource.properties	2009-12-01 17:44:45 UTC (rev 30420)
@@ -1 +1,2 @@
-datasoure.xml=<!-- place some datasource xml here  --><bean name="VendorXADataSource" class="${db-vendor-jdbc-xa.driverClass}"><property name="user">${db-vendor-jdbc-userName}</property><property name="password">${db-vendor-jdbc-password}</property><property name="url">${db-vendor-jdbc-connectionURL}</property><property name="serverName">${db-vendor-jdbc-serverName}</property><property name="databaseName">${db-vendor-jdbc-database}</property><property name="minSize">${db-pool-min.size}</property><property name="maxSize">${db-pool-max.size}</property><property name="blockingTimeout">${db-connection-blocking.timeout}</property><property name="idleTimeout">${db-connection-idle.timeout}</property><property name="connectionCachingEnabled">${db-connection.caching}</property></bean><bean name="DatasourceWrapper" class="org.jboss.jbossts.performance.MCXaDataSourceWrapper"><constructor><parameter class="java.lang.String">java:/caveatemptorTestingDatasource</parameter><parameter clas!
 s="javax.sql.XADataSource"><inject bean="VendorXADataSource" /></parameter><parameter class="java.lang.String">${db-vendor-jdbc-userName}</parameter><parameter class="java.lang.String">${db-vendor-jdbc-password}</parameter></constructor><property name="initialContextProperties"><inject bean="InitialContextProperties"/></property></bean><bean name="TransactionalResourceFactory" class="org.jboss.jbossts.performance.TransactionXADataSourceFactory"><constructor><parameter class="java.lang.String">java:/caveatemptorTestingDatasource</parameter><parameter class="org.jboss.jbossts.tomcat.XADataSourceWrapper"><inject bean="DatasourceWrapper"/></parameter></constructor></bean><bean name="caveatemptorTestingDatasource" class="java.lang.Object"><constructor factoryMethod="getDatasource"><factory bean="TransactionalResourceFactory" /></constructor></bean>
\ No newline at end of file
+#datasoure.xml=<bean name="TransactionalResourceFactory" class="org.jboss.jbossts.performance.TransactionXADataSourceFactory"><constructor><parameter class="java.lang.String">java:/caveatemptorTestingDatasource</parameter><parameter class="java.util.Map"><map keyClass="java.lang.String" valueClass="java.lang.String"><entry><key>url</key><value>${db-vendor-jdbc-connectionURL}</value></entry><entry><key>ServerName</key><value>${db-vendor-jdbc-serverName}</value></entry><entry><key>databaseName</key><value>${db-vendor-jdbc-database}</value></entry><entry><key>ConnectionCachingEnabled</key><value>${db-connection.caching}</value></entry><entry><key>MinSize</key><value>${db-pool-min.size}</value></entry><entry><key>MaxSize</key><value>${db-pool-max.size}</value></entry><entry><key>BlockingTimeout</key><value>${db-connection-blocking.timeout}</value></entry><entry><key>IdleTimeout</key><value>${db-connection-idle.timeout}</value></entry><entry><key>User</key><value>${db-vendor-jdb!
 c-userName}</value></entry><entry><key>Password</key><value>${db-vendor-jdbc-password}</value></entry></map></parameter></constructor><property name="driverClass">${db-vendor-jdbc-xa.driverClass}</property><property name="cachedConnectionManager"><inject bean="CachedConnectionManager"/></property><property name="initialContextProperties"><inject bean="InitialContextProperties"/></property><property name="transactionManager"><inject bean="TransactionManager"/></property></bean><bean name="caveatemptorTestingDatasource" class="java.lang.Object"><constructor factoryMethod="getDatasource"><factory bean="TransactionalResourceFactory" /></constructor></bean><bean name="DataSourceBinding" class="org.jboss.ejb3.embedded.JndiBinder"><property name="jndiProperties"><inject bean="InitialContextProperties"/></property><property name="target"><inject bean="caveatemptorTestingDatasource"/></property><property name="bindTo">java:/caveatemptorTestingDatasource</property><property name="ser!
 ializable">false</property></bean>
+datasoure.xml=<bean name="TransactionalResourceFactory" class="org.jboss.jbossts.performance.TransactionXADataSourceFactory"><constructor><parameter class="java.lang.String">java:/caveatemptorTestingDatasource</parameter><parameter class="java.util.Map"><map keyClass="java.lang.String" valueClass="java.lang.String">${db-vendor-driver.configuration.xml}</map></parameter></constructor><property name="driverClass">${db-vendor-jdbc-xa.driverClass}</property><property name="cachedConnectionManager"><inject bean="CachedConnectionManager"/></property><property name="initialContextProperties"><inject bean="InitialContextProperties"/></property><property name="transactionManager"><inject bean="TransactionManager"/></property></bean><bean name="caveatemptorTestingDatasource" class="java.lang.Object"><constructor factoryMethod="getDatasource"><factory bean="TransactionalResourceFactory" /></constructor></bean><bean name="DataSourceBinding" class="org.jboss.ejb3.embedded.JndiBinder"><p!
 roperty name="jndiProperties"><inject bean="InitialContextProperties"/></property><property name="target"><inject bean="caveatemptorTestingDatasource"/></property><property name="bindTo">java:/caveatemptorTestingDatasource</property><property name="serializable">false</property></bean>
\ No newline at end of file



More information about the jboss-svn-commits mailing list