How can I retrieve the id of a Transaction started by JBoss ?
- Published: 17 December 2008
JBoss recipe of the day
Sometimes it an be useful for debugging purpose to retrieve the id of a transaction; one typical scenario could be a transaction started by an EJB deployed as CMT.
Most application server provide some methods to obtain this information : with JBoss you can use the method com.arjuna.ats.jta.TransactionManager.transactionManager().getTransaction()
It's not portable, however should you need it......