Reason 2035: FAILED: MQRC_NOT_AUTHORIZED

Asked by Majid

Hi,

I have created a virtual machine in my windows using vagrant, installed websphere MQ 8 libraries and pymqi, when I run this code :

import CMQC
import pymqi

# Connection info.

qm_name = "ALOTFI.QUEUE.MANAGER"
channel = "MAJID.CHANNEL"
conn_info = "10.196.60.99(50501)"

# Message we'll be passing around.
msg = "Hello, dynamic queue!"

# Conect to MQ.

cd = pymqi.cd()
qm = pymqi.QueueManager(None)
qm.connectTCPClient(qm_name, cd, channel, conn_info)

# Prepare an object descriptor for dynamically creating a queue.

od = pymqi.od()
od.ObjectName = "D3000.REPLY.QUEUE.MODEL"
od.DynamicQName = "DYNAMIC.REPLY.*"

# Open the queue for reading.

input_open_options = CMQC.MQOO_INPUT_EXCLUSIVE
input_queue = pymqi.Queue(qm, od, input_open_options)
dyn_queue_name = od.ObjectName.strip()

print "Successfully created a dynamic queue", dyn_queue_name

# Open the queue again and put a message on it.

output_queue = pymqi.Queue(qm, dyn_queue_name)
output_queue.put(msg)

print "Successfully sent a message [%s]" % msg

# Now get the message off the queue.

received_msg = input_queue.get()
print "Successfully received a message [%s]" % received_msg

I got this error :

pymqi.MQMIError: MQI Error. Comp: 2, Reason 2035: FAILED: MQRC_NOT_AUTHORIZED

10.196.60.99 is my IP address in my windows.

Please your help is appreciated.

Question information

Language:
English Edit question
Status:
Answered
For:
PyMQI Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Dariusz Suchojad (dsuch) said :
#1

Hi,

development of PyMQI has moved to GitHub several years ago. Please post your question here:

https://github.com/dsuch/pymqi

Thanks.

Can you help with this problem?

Provide an answer of your own, or ask Majid for more information if necessary.

To post a message you must log in.