nLabel">Returns:</span></dt>
<dd>a newly created <code>QueueSession</code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../jakarta/jms/JMSException.html" title="class in jakarta.jms">JMSException</a></code> - if the <code>QueueConnection</code> object fails to create a <code>QueueSession</code> due to
 <ul>
 <li>some internal error,
 <li>lack of support for the specific transaction and acknowledgement mode, or
 <li>because this method is being called in a Jakarta EE web or EJ