title: Connecting IBM MQ from a Standalone program | Error: ('MQRC_NOT_AUTHORIZED')
body: <p>I am trying to connect a queue manager from a standalone program and am getting the following error.</p>
  
  <pre><code>Caused by: com.ibm.mq.MQException: JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2035' ('MQRC_NOT_AUTHORIZED').
  </code></pre>
  
  <p>I understand that the connecting ID needs to be configured at the MQ to allow this connection.</p>
  
  <p>But strangely, when I try to connect from Websphere Application Server (WAS), I am successfully connected to the queue.
  My standalone program is using the same JDK as WAS.</p>
  
  <p>Should the JVM ID for both these programs be the same?</p>
  
  <p>I am using a CCDT file to connect to the queue.</p>