p;sessionMode)</pre>
<div class="block">Creates a JMSContext with the default user identity and the specified session mode.

 <p>
 A connection and session are created for use by the new JMSContext. The JMSContext is created in stopped mode but
 will be automatically started when a JMSConsumer is created.

 <p>
 The effect of setting the <code>sessionMode</code> argument depends on whether this method is called in a Java SE
 environment, in the Jakarta EE application client container, or in the Jakarta EE w