JSONArray txDetailListJson = new JSONArray();
for (Map.Entry<Xid, Long> entry : xidsSortedByCreationTime)
{
Xid xid = entry.getKey();
TransactionDetail detail = new CoreTransactionDetail(xid,
resourceManager.getTransaction(xid),
entry.getValue());
txDetailListJson.put(detail.toJSON());
}
return txDetailListJson.toString();
}
finally
{