Announcement Announcement Module
Collapse
No announcement yet.
JPA with container transaction manager not committing Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JPA with container transaction manager not committing

    I'm using Spring 3.0.2.RELEASE with EclipseLink 2.0 and GlassFish 3.0. I've goth things wired up and working well when I use the JpaTransactionManager and everything works and commits. But now I want to switch to using the JtaTransacitonManager. Of course this should be easy. Simply use the following:

    Code:
    <tx:jta-transaction-manager/>
    But when I do this then my transactions don't seem to commit and nothing gets inserted into the database. So I tried wiring it up manually.

    Code:
        <bean id="transactionManager" class="org.springframework.transaction.jta.JtaTransactionManager">
            <property name="transactionManager" ref="txManager"/>
            <property name="userTransactionName" value="UserTransaction"/>
        </bean>
    The container's transaction manager is located as there are no exceptions but I have the same issue, nothing gets committed to the database.

    I've configured my persistence.xml to use XA:
    Code:
      <persistence-unit name="ice-core-pu" transaction-type="JTA">
    And my DataSource is defined as XA, utilizing JavaDB:
    Code:
    org.apache.derby.jdbc.ClientXADataSource
    So why aren't my transactions committing?

    Thanks in advance...


    So I am at a loss as to why my transactions are not committing with XA.
Working...
X