13 lines
220 B
Python
13 lines
220 B
Python
import pymqi
|
|
|
|
queue_manager = 'QM1'
|
|
queue_name = 'DEV.QUEUE1'
|
|
message = 'Hello from Python!'
|
|
|
|
qmgr = pymqi.connect(queue_manager)
|
|
|
|
queue = pymqi.Queue(qmgr, queue_name)
|
|
queue.put(message)
|
|
queue.close()
|
|
|
|
qmgr.disconnect() |