Mantis - Resin
Viewing Issue Advanced Details
6245 minor always 05-19-19 23:23 05-19-19 23:38
nam  
 
normal  
new 4.0.61  
open  
none    
none  
0006245: implement JtaPlatformProvider for Hibernate 5 JTA support
To integrate with Hibernate 5, Resin needs to implement a JtaPlatformProvider[1]. It can simply return a hibernate-provided ResinJtaPlatform[2].

[1] JtaPlatformProvider: https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/main/java/org/hibernate/engine/transaction/jta/platform/internal/StandardJtaPlatformResolver.java#L33 [^]

[2] ResinJtaPlatform: https://github.com/hibernate/hibernate-orm/blob/e5dc635a52362f69b69acb8d5b166b69b165dbbd/hibernate-core/src/main/java/org/hibernate/engine/transaction/jta/platform/internal/ResinJtaPlatform.java#L18 [^]

Notes
(0006895)
nam   
05-19-19 23:24   
The workaround is for users to add the following property to their persistence.xml:

            <property name="hibernate.transaction.jta.platform" value="Resin"/>
(0006896)
nam   
05-19-19 23:26   
Caucho should also submit a github pull request to Hibernate to add native Resin detection to StandardJtaPlatformResolver.java.