// during the pre-commmit phase. This is required for
// JTA 1.1 Synchronization ordering behaviour
if(_currentRecord != null) {
Comparable c = (Comparable)otsSync;
if(c.compareTo(_currentRecord) != 1) {
throw new UNKNOWN(ExceptionCodes.ADD_FAILED, CompletionStatus.COMPLETED_NO);
}
}
if (!_synchs.add(otsSync))
{
otsSync = null;
throw new UNKNOWN(ExceptionCodes.ADD_FAILED,
CompletionStatus.COMPLETED_NO); // what else to
// raise?
}
}
else