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