Trying to configure a standalone Spring Framework application to use JBoss Transactions Manager for XA Distributed Transactions

Solution Unverified - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.