We're updating the issue view to help you get more done. 

Transaction passed to Hibernate Interceptor methods is null when JTA is used

Description

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.

Environment

None

Status

Assignee

Gail Badner

Reporter

Markus Chur

Labels

Worked in

5.1.14

Components

Fix versions

Affects versions

5.3.6
5.3.9

Priority

Major