I am trying to connect a queue manager from a standalone program and am getting the following error.
Caused by: com.ibm.mq.MQException: JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2035' ('MQRC_NOT_AUTHORIZED').
I understand that the connecting ID needs to be configured at the MQ to allow this connection.
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.
Should the JVM ID for both these programs be the same?
I am using a CCDT file to connect to the queue.