">void&nbsp;setRollbackOnly()
              throws <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IllegalStateException</a></pre>
<div class="block">Mark the current transaction for rollback. The transaction will become permanently marked for rollback. A transaction
 marked for rollback can never commit.

 Only enterprise beans with container-managed transactions are all