I wrote an FAQ on this:
It is not necessary for the TransactionManager to implement XATerminator
only that the TransactionManagerService tells you what implements it.
As for tidying up associations, this could be done with a Transaction synchronization
rather than modifying the transaction manager.
I am interested in a generic JBossXATerminator implementation that works
for other tranaction managers. Obviously doing it inside the TM is slightly more
optimized but does lead to tight binding between the JTA and JCA implementations.
If you can tell me your sourceforge id, I will get you cvs access so you can add your integration to the varia module.
I have made more test with the integration, and I've realized that is not running as intended, so I'm going to wait until I fix it to add it to the repository (Bill have give me access to the repository already).