Outcome res = ua.end();
if (res instanceof CoordinationOutcome)
{
CoordinationOutcome out = (CoordinationOutcome) res;
if (out.result() == TwoPhaseResult.CANCELLED)
passed = true;
else
System.out.println("Result is: "+TwoPhaseResult.stringForm(out.result()));
}
else
System.out.println("Outcome is: "+res);
res = ua.end();
if (res instanceof CoordinationOutcome)
{
CoordinationOutcome out = (CoordinationOutcome) res;
if (out.result() == TwoPhaseResult.CANCELLED)
passed = passed && true;
else
System.out.println("Result is: "+TwoPhaseResult.stringForm(out.result()));
}
else
System.out.println("Outcome is: "+res);
}
catch (NoActivityException ex)