cursor = null;
try
{
cursor = _xidDb.openCursor(null, null);
DatabaseEntry key = new DatabaseEntry();
XidTB keyBinding = new XidTB();
PreparedTransactionTB valueBinding = new PreparedTransactionTB();
DatabaseEntry value = new DatabaseEntry();
while (cursor.getNext(key, value, LockMode.RMW) == OperationStatus.SUCCESS)
{
Xid xid = keyBinding.entryToObject(key);
PreparedTransaction preparedTransaction = valueBinding.entryToObject(value);
dtxrh.dtxRecord(xid.getFormat(),xid.getGlobalId(),xid.getBranchId(),
preparedTransaction.getEnqueues(),preparedTransaction.getDequeues());
}