Xavi Folch commented on New Feature HHH-7527

Hi Team,

I've been able to configure and deploy a container-managed JPA application with Hibernate on a Karaf 2.3.x. In particular, I've used:

  • Hibernate 4.2.2.Final
  • Aries JPA 1.0.1
  • Aries Transaction 1.0.1
  • Aries JNDI 1.0.0
  • Karaf 2.3.x

Everything seems to work properly except when I want to flush changes on a persistent entity inside a JTA transaction. Usually, it is done automatically at the end of transaction but it is not the case. I must manually call "flush" method from entity manager to save this changes.

Is there any property to force the flush operation in the commit phase? I've tried to add the following properties on "persistence.xml" with no luck

<property name="hibernate.transaction.flush_before_completion" value="true" />
<property name="org.hibernate.flushMode" value="COMMIT" />
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira