in tx-control-services/tx-control-service-xa/src/main/java/org/apache/aries/tx/control/service/xa/impl/TransactionContextImpl.java [148:162]
protected void safeSetRollbackOnly() {
TransactionStatus status = getTransactionStatus();
switch (status) {
case ACTIVE:
case MARKED_ROLLBACK:
try {
currentTransaction.setRollbackOnly();
} catch (Exception e) {
throw new TransactionException("Unable to set rollback for the transaction", e);
}
break;
default:
break;
}
}