cle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;password,
                         int&nbsp;sessionMode)</pre>
<div class="block">Creates a JMSContext with the specified 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.