I am using:
- Hibernate 5.0.2
- Spring 4.2
- Atomikos 3.9.3
The official documentation says you only have to set the jtaTransactionManager, and everything works:
<bean id="sessionFactory" class="org.springframework.orm.hibernate5.LocalSessionFactoryBean">
<property name="dataSource" ref="atomikosDataSource" />
<property name="jtaTransactionManager" ref="jtaTransactionManager"/>
[...]
</bean>
Unfortuntely, the session is not flushed - no writes are taking place. What is the issue?