<b>Jakarta EE web or EJB container, when there is an active JTA transaction in progress</b>:
 <ul>
 <li>The session will participate in the JTA transaction and will be committed or rolled back when that transaction is
 committed or rolled back, not by calling the <code>JMSContext</code>'s <code>commit</code> or <code>rollback</code> methods.
 </ul>

 <p>
 In the <b>Jakarta EE web or EJB container, when there is no active JTA transaction in progress</b>:
 <ul>
 <li>The session will be non-transacted and rece