Creating a dynamic response queue
I am trying to convert existing VB DLL code to Python for MQ using pymqi. I have converted all the functions I require except a function for creating a dynamic response queue. In all honesty I am flunking badly. Below is what I am trying to move from VB to Python.
What works in VB:
MQOD_DEFAULTS RepQ_OD
RepQ_OD.ObjectName = "D3000.
RepQ_OD.
OpenOptions = MQOO_INPUT_
In VB the following line return gets the dynamic queue name from the host:
MQOPEN Hconn, RepQ_OD, OpenOptions, Hrep, CompCode, Reason
And the ObjectName has been replaced with the new dynamic queue name
msResponseQueueName = RTrim$(
What I am attempting in Python:
recQOD = pymqi.od()
recQOD.
recQOD.
openOptions = pymqi.CMQC.
How do I trigger an MQOPEN? I can’t figure out how put the parts together and I’m not understanding the docs.
Thank you
Gary
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- PyMQI Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Dariusz Suchojad
- Solved:
- Last query:
- Last reply: