I need to register a Synchronization object which will receive afterCompletion() invocations - or the equivalent - AFTER all resources in the transaction have been committed.
I could register against the javax.transaction.Transaction instance or against the javax.ejb.UserTransaction instance.
Is either of these preferable? Is there a specific JNDI name I should use?
My code runs variously within Stateless Session EJBs and Message-Driven EJBs.
Reposted to JBoss-User. Appologies.