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:
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.
The container's transaction manager is located as there are no exceptions but I have the same issue, nothing gets committed to the database.
<bean id="transactionManager" class="org.springframework.transaction.jta.JtaTransactionManager">
<property name="transactionManager" ref="txManager"/>
<property name="userTransactionName" value="UserTransaction"/>
I've configured my persistence.xml to use XA:
And my DataSource is defined as XA, utilizing JavaDB:
<persistence-unit name="ice-core-pu" transaction-type="JTA">
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.