Add dockerfiles
This commit is contained in:
13
rln/ubi9/mq/pymqi-binding.py
Normal file
13
rln/ubi9/mq/pymqi-binding.py
Normal file
@@ -0,0 +1,13 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user