I am getting the error "Error opening queue manager ****, Completion Code 2 (MQCC_FAILED), Reason Code 2035 (MQRC_NOT_AUTHORIZED)" while trying to publish / Subscribe message from IBM MQ.
I am using DevTest 10.3, please suggest the resolution if anyone faced this issue.
You need to enter the correct username and password. You may have to add these fields to the MQ Queue Manager Asset with the '+' button, they are located at 'Basic' -> 'User ID' and 'Basic' -> 'Password'.
Refer to this link:
IBM MQ and SSL/TLS
Thanks Marcy for the response, but we don't need the Credentials to connect. We are able to connect from some other tool without auth details.
Thanks Prema, I will look into this.
Yes, I have faced this issue. If you are connecting to IBM MQ via JMS, then make sure you add a JMS Connection object and provide user name and password in addition to a 'JMS Connection Factory' Object. Please see the screenshots below as to how I have defined them in my local env.
JMS Connection Factory Object
JMS Connection Object
Please note that the JMS Connection object adds a reference to the JMS Connection Factory object that I have defined in previous step
The screenshot below shows the queue definition. Here I use the JMS Connection object that was defined in previous step
If you still face the 2035 error even after defining JMS connection and passing username and password, please check the following on the MQ Server side.
Launch IBM Mq explorer, locate the queue manager that you have defined and check the steps shown below. Just delete the 'Block user' policy if it has been defined in the 'Channel Authentication Records'. If you still face the problem, lets have a webex session to go over this. You may reach me at firstname.lastname@example.org
Thanks for you response.
I tried your suggestion, Still no luck. For my case I don't need to pass credentials to connect to MQ Manager. We are able to connect to the same MQ manager from other tool without using userID & Password.
Please let me know your convenient time. I shall setup a webex session with you to go over this.
Using the MQ 7 jars with this approach(Using JMS SendReceive step) by leaving UserId and Password blank has resolved the issue, thanks heaps for your expert advise.
Super ! Thats a good news.
Open a new support case and we can get on a webex.
Thank you Marcy, I had raised a support ticket.