]
Gytis Trikleris commented on WFLY-7207:
---------------------------------------
Transaction availability can be checked by using ExtendedJBossXATerminator [1]. Currently
it's not convenient to access it. You need to inject WildFly service for
JBossXATerminator [2] and then cast it. But that should be enough at least for testing in
your part.
I will add a new service ASAP to directly inject ExtendedJBossXATerminator. But it might
take some time to be merged.
[1]
Integration with transactions during the graceful shutdown
----------------------------------------------------------
Key: WFLY-7207
URL:
https://issues.jboss.org/browse/WFLY-7207
Project: WildFly
Issue Type: Feature Request
Components: EJB
Reporter: Gytis Trikleris
Assignee: David Lloyd
Priority: Critical
Fix For: 11.0.0.Alpha1
During the graceful shutdown EJB subsystem should consult Transactions subsystem whether
the requests should be rejected or not. Transaction subsystem would check for availability
of JTA or JTS transaction and return the outcome.