Create and register a hibernate interceptor that touches transaction provided by afterTransactionCompletion(Transaction tx)
This is related to WFLY-11832. Description is copied.
With Wildfly 13 - javaee7 transactions in hibernate interceptors were never null.
Since Wildfly 14 - javaee8 transactions in hibernate interceptors are always null.
Attached sources and a jar of a minimal reproducer for Wildfly 16. This is reproducible by using a fresh unchanged Wildfly 16 and unchanged standalone.xml. Extract Wildfly 16, drop in the jar in the deployments folder and start the server.
is it possible to fix this in 5.3.10? Wildfly is still on 5.3.x and I would like to change the modules as soon as a fix is available.
, this will be fixed in 5.3.10, since it's a regression introduced since 5.1. It will probably be a couple of months before 5.3.10 is released though.
Thank you Gail! I checked out 5.3.9, applied the fix, and replaced hibernate-core in Wildfly modules with a snapshot. I can confirm that when setting "hibernate.jta.allowTransactionAccess" to true my Hibernate interceptor is working again
, thanks for checking!
Fixed in 5.3 branch as well.