Reason 2035: FAILED: MQRC_NOT_AUTHORIZED
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.
channel = "MAJID.CHANNEL"
conn_info = "10.196.
# Message we'll be passing around.
msg = "Hello, dynamic queue!"
# Conect to MQ.
cd = pymqi.cd()
qm = pymqi.QueueMana
qm.connectTCPCl
# Prepare an object descriptor for dynamically creating a queue.
od = pymqi.od()
od.ObjectName = "D3000.
od.DynamicQName = "DYNAMIC.REPLY.*"
# Open the queue for reading.
input_open_options = CMQC.MQOO_
input_queue = pymqi.Queue(qm, od, input_open_options)
dyn_queue_name = od.ObjectName.
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_
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:
Can you help with this problem?
Provide an answer of your own, or ask Majid for more information if necessary.