nks below.
 </ul>

 <p>
 In a <b>Jakarta EE web or EJB container, when there is an active JTA transaction in progress</b>:
 <ul>
 <li>The argument <code>sessionMode</code> is ignored. 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. Since the argument is ignored, developers are recommended to use
 <code>createContext()