ainer, or in the Jakarta EE web or EJB container.
 If this method is called in the Jakarta EE web or EJB container then the effect of setting the transacted} and
 <code>acknowledgeMode</code> arguments also depends on whether or not there is an active JTA transaction in progress.

 <p>
 In a <b>Java SE environment</b> or in <b>the Jakarta EE application client container</b>:

 <ul>
 <li>If <code>transacted</code> is set to <code>true</code> then the session will use a local transaction which may subsequentl