I'm trying to figure out how to access the TransactionManager from within a CMT session bean to get the active transaction.
I need the TransactionManager to get the active transaction, not the UserTransaction because I need the methode registerSynchronization defined in Transaction.
Please, can somebody tell me how to configure JBoss / ejb-jar.xml / jboss.xml of the session bean to get access to the TransactionManager.
Thanks in advance.
The only standard way to do this is to use a stateful session bean that implements the javax.ejb.SessionSynchronization interface.
The JTA tm is bound under java:/TransactionManager for the default jboss tm, but this is not defined by the spec.