java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IllegalStateException</a></code> - The Container throws the exception if the instance is not allowed to use the
 <code>UserTransaction</code> interface (i.e. the instance is of a bean with container-managed transactions).</dd>
</dl>
</li>
</ul>
<a id="setRollbackOnly()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRollbackOnly</h4>
<pre class="methodSignature