Trying to configure a standalone Spring Framework application to use JBoss Transactions Manager for XA Distributed Transactions
Issue
- I'm trying to using JBossTS (version 4.17.7 Final) as Transaction Manager in Spring. My application is a standalone Java application (a simple main that runs in a JVM).
JBossTS configuration in Spring is:
<bean id="jbossTS" class="com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionManagerImple" />
<bean id="jbossUserTransaction" class="com.arjuna.ats.internal.jta.transaction.arjunacore.UserTransactionImple" />
<bean id="jtaTransactionManager" class="org.springframework.transaction.jta.JtaTransactionManager">
<property name="transactionManager" ref="jbossTS" />
<property name="userTransaction" ref="jbossUserTransaction" />
</bean>
Usually i configure Oracle datasource in this way:
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName">
<value>${jdbc.driverClassName}</value>
</property>
<property name="url">
<value>${jdbc.url}</value>
</property>
<property name="username">
<value>${jdbc.username}</value>
</property>
<property name="password">
<value>${jdbc.password}</value>
</property>
</bean>
The question is how do i configure Oracle XA datasource with JBossTS ?
Environment
- JBoss Transactions Manager
- Spring Framework
- Distributed Datasource Transactions (XA Datasource)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.