The code added as part of
MODE-2353 adds an Infinispan listener for each transaction. This does not scale. Instead, we should add a single listener and then use that listener for all transactions.
BTW, the ISPN transaction-related methods were considered internal implementations, and in Infinispan 7 were moved into non-API packages. I created
ISPN-4983 to request some way to know when ISPN completes its work for a given user transaction; we'll eventually have to change this logic.