ransaction.html" title="interface in jakarta.transaction">UserTransaction</a>&nbsp;getUserTransaction()
                            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">Obtain the transaction demarcation interface.

 Only enterprise beans with bean-managed transactions are allowed to to use the <code>Use