I am trying to extend the behavior of the transaction manager in Wildfly. Specifically, I need some logic performed when a transaction is committed or rolled back. I played around with Interceptors and the TransactionSynchronizationRegistry, but the powers that be have determined that it is too ugly a solution. I am now tasked with creating a global solution to hook into all transactions managed by narayana.
Is there any way of plugging in behavior? I don't see anything in the JEE spec or the narayana documentation. Please let me know if more information is needed.