return new ArrayList<Map<String, String>>(0);
txnTable = new Hashtable();
List<Map<String, String>> activeTxnList = new ArrayList<Map<String, String>>();
Map<String, String> txnListEntry = null;
for (int i=0; i < aList.size(); i++) {
TransactionAdminBean txnBean = (TransactionAdminBean)aList.get(i);
Transaction j2eeTxn = (Transaction) txnBean.getIdentifier();
String txnId = txnBean.getId();
txnTable.put(txnId, j2eeTxn);
txnListEntry = new HashMap<String, String>(5);
txnListEntry.put(TRANSACTION_ID, txnId);
txnListEntry.put(ELAPSED_TIME, String.valueOf(txnBean.getElapsedTime()));
txnListEntry.put(COMPONENT_NAME, txnBean.getComponentName());
ArrayList<String> resourceList = txnBean.getResourceNames();
StringBuffer strBuf = new StringBuffer(" ");
if (resourceList != null) {
for (int k = 0; k < resourceList.size(); k++) {
strBuf.append(resourceList.get(k));
strBuf.append(",");
}
}
txnListEntry.put(RESOURCE_NAMES, strBuf.toString());
txnListEntry.put(STATE, txnBean.getStatus());
activeTxnList.add(txnListEntry);
}
return activeTxnList;
}