Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-5768

Non-JPA applications that use Hibernate with JTA must set hibernate.transaction.coordinator_class

XMLWordPrintable

      By default, Hibernate will assume that a non-JPA application uses JDBC, which will cause problems if the application actually uses JTA-based transactions.

      A non-JPA application that uses JTA-based transactions should explicitly set hibernate.transaction.coordinator_class=jta or provide a custom org.hibernate.resource.transaction.TransactionCoordinatorBuilder that builds a org.hibernate.resource.transaction.TransactionCoordinator that properly coordinates with JTA-based transactions.

      See the migration guide for Hibernate ORM 5.0.x section about transactions for details:
      https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#transactions

      The user guide will be updated with this information in 5.0.11. Those updates can be seen at:
      https://github.com/hibernate/hibernate-orm/commit/f23b550b623a484dd56ccd1028fdaee34c64f907

            sgilda_jira Sande Gilda (Inactive)
            gbadner@redhat.com Gail Badner (Inactive)
            Martin Simka Martin Simka
            Martin Simka Martin Simka
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: