public synchronized ObjectName[] getTransactions ()
{
// clean up previous beans
unregisterBeans ();
LogControl logControl = JmxLogAdministrator.getInstance ()
.getLogControl ();
if ( logControl == null )
throw new RuntimeException (
"LogControl is null: transaction service not running?" );
AdminTransaction[] transactions = logControl.getAdminTransactions ();
JmxTransactionMBean[] mBeans = JmxTransactionMBeanFactory.createMBeans(transactions, heuristicsOnly);
beans = new ObjectName[mBeans.length];
for ( int i = 0; i < mBeans.length; i++ ) {
try {
beans[i] = new ObjectName ( "atomikos.transactions", "TID",