This content has been marked as final.
Show 2 replies
-
1. Re: How to find out if there is an active CMT
adrian.brock Jun 3, 2004 6:01 PM (in response to cvandyck)There is no portable way to do this, since access to the transaction manager
is not in the spec.
In jboss it is:import javax.transaction.TransactionManager; TransactionManager tm = (TransactionManager) new InitialContext().lookup("java:/TransactionManager"); int status = tm.getStatus();
-
2. Re: How to find out if there is an active CMT
cvandyck Jun 4, 2004 10:48 AM (in response to cvandyck)Adrian,
Thanks for your help -- I've been wondering for some time how to do this :)
Collin