Skip to content

Instantly share code, notes, and snippets.

@germanrsolis
Created December 1, 2011 13:27
Show Gist options
  • Save germanrsolis/1416714 to your computer and use it in GitHub Desktop.
Save germanrsolis/1416714 to your computer and use it in GitHub Desktop.
xa-gist-2
<spring:beans>
<spring:bean id="oraDataSource" class="oracle.ucp.jdbc.PoolXADataSourceImpl">
<spring:property name="URL" value="${jdbc.url}" />
<spring:property name="user" value="${jdbc.user}" />
<spring:property name="password" value="${jdbc.pass}" />
<spring:property name="connectionFactoryClassName"
value="oracle.jdbc.xa.client.OracleXADataSource" />
<spring:property name="minPoolSize" value="10" />
<spring:property name="maxPoolSize" value="20" />
<spring:property name="connectionWaitTimeout" value="30" />
</spring:bean>
<spring:bean id="mySqlDataSource"
class="com.mysql.jdbc.jdbc2.optional.MysqlXADataSource">
<spring:property name="url"
value="jdbc:mysql://${mysql.host}:${mysql.port}/${mysql.database}?user=${mysql.user}&amp;password=${mysql.pwd}" />
</spring:bean>
</spring:beans>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment