RFH2 header is not getting added

Asked by Rajen

Hi,

RFH2 header is not getting added when I try doing this.

....
put_rfh = pymqi.RFH2()
put_rfh.add_folder = "<mcd><Msd>None</Msd><Set>None</Set><Type>None</Type></mcd>"
put_opts = pymqi.PMO(Options=CMQC.MQPMO_NO_SYNCPOINT + CMQC.MQPMO_FAIL_IF_QUIESCING)
self.req_queue.put(message, put_mqmd, put_opts)
....

Is there something wrong in the above code?

Thanks,
Rajen

Question information

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

Hello Rajen!

I'm really busy these days but I'm wondering if it doesn't work if you do it according to the examples at

http://bazaar.launchpad.net/~dsuch/pymqi/trunk/view/head:/src/tests/test_rfh2.py
http://bazaar.launchpad.net/~dsuch/pymqi/trunk/view/head:/src/tests/test_rfh2_put_get.py

?

Revision history for this message
Rajen (rajenpn) said :
#2

Sorry, I was using put() instead of put_rfh2()
I didn't know about this.

Thanks,
Rajen

Revision history for this message
toppgun stike (toppgun) said :
#3

Hi Rajen, Dariusz

i could not get this working with put_rfh2.

 queue.put_rfh2(message, md, put_opts)

this is throwing an error (NameError: name 'queue' is not defined)

Any sample code which implements put_rfh2 will be really helpful