Message Descriptor overwritten
Hi !
I came across the situation when fields in message descriptor gets overwritten or blanked
I have noticed it when trying to get messge from the que I have put it
I would appreciate if someone could guide me in right direction as I would assume that I am doing
something wrong since I am preatty new to the pyMQI and IBM MQ in general
here is code
import pymqi
mq_port = '1414'
mq_host = '10.2.6.41'
mq_manager = 'lido.queue.
mq_channel = 'SYSTEM.
mq_queue = 'TEST1'
message = 'Test message'
#message desriptor
md = pymqi.md()
md.MsgType = 8
md.Persistence = 0
md.Format = 'MQSTR '
md.ApplOriginData = 'IEDI'
md.ReplyToQ = 'lido.queue.
md.ReplyToQMgr = 'GWT11.BT1'
md.UserIdentifier = 'FBTNGDMQ1A'
md.ApplIdentityData = '1ASICOBT'
# connecting
conn_info = "%s(%s)" % (mq_host, mq_port)
qmgr = pymqi.QueueMana
qmgr.connectTCP
queue = pymqi.Queue(
queue.put(
queue.close()
qmgr.disconnect()
here is some fields before put()
UserIdentifier: FBTNGDMQ1A
ApplIdentityData: 1ASICOBT
ApplOriginData: IEDI
here is how they look after get() the same message from queue
UserIdentifier: mqm
ApplIdentityData:
ApplOriginData:
Thanks in advace
Arvis
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- PyMQI Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Arvis Skujenieks
- Solved:
- Last query:
- Last reply: