
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</a></code> - The Container throws the exception if the instance is not allowed to use this method
 (i.e. the instance is of a bean with bean-managed transactions).</dd>
</dl>
</li>
</ul>
<a name="getRollbackOnly--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>g