isPreparationWaiting = false;
// process the user decision
if (!isCommit)
{
throw new FaultedException("RestaurantManager.compensateSeats(): compensation fault");
}
}
catch (Exception e)
{
System.err.println("RestaurantManager.compensateSeats(): Unexpected error during compensation.");
throw new FaultedException("RestaurantManager.compensateSeats(): compensation fault");
}
}
// compensate the committed transaction
Integer request = (Integer) compensatableTransactions.remove(txID);