Add dockerfiles
This commit is contained in:
17
rln/ubi9/mq/pymqi-tcp.py
Normal file
17
rln/ubi9/mq/pymqi-tcp.py
Normal file
@@ -0,0 +1,17 @@
|
||||
import pymqi
|
||||
|
||||
queue_manager = 'QM1'
|
||||
channel = 'DEV.APP.SVRCONN'
|
||||
host = '192.168.50.155'
|
||||
port = '1414'
|
||||
queue_name = 'DEV.QUEUE1'
|
||||
message = 'Hello from Python!'
|
||||
conn_info = '%s(%s)' % (host, port)
|
||||
|
||||
qmgr = pymqi.connect(queue_manager, channel, conn_info)
|
||||
|
||||
queue = pymqi.Queue(qmgr, queue_name)
|
||||
queue.put(message)
|
||||
queue.close()
|
||||
|
||||
qmgr.disconnect()
|
||||
Reference in New Issue
Block a user