ejb3/src/main/java/org/jboss/as/ejb3/tx/CMTTxInterceptor.java
protected void setRollbackOnly(Transaction tx, final Throwable t) {
        try {
            tx.setRollbackOnly();
        } catch (Throwable t2) {
            EjbLogger.ROOT_LOGGER.failedToSetRollbackOnly(t2);
            if (t != null) {
                t.addSuppressed(t2);
            }
        }
    }
protected void setRollbackOnly(Transaction tx, final Throwable t) {
        try {
            tx.setRollbackOnly();
        } catch (Throwable t2) {
            EjbLogger.ROOT_LOGGER.failedToSetRollbackOnly(t2);
            if (t != null) {
                t.addSuppressed(t2);
            }
        }
    }
The <code>setRollbackOnly</code> method calls setRollbackOnly()
on the invocation's transaction and logs any exceptions than may
occur.

@param tx the transaction
@param t the exception to add problems to (may be {@code null})