automated terminal push
This commit is contained in:
18
jms.py
Normal file
18
jms.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import stomp
|
||||
|
||||
def writeSullyURLToJMS(channel):
|
||||
|
||||
print(f"launch -> jms writer -> channel-> {channel}")
|
||||
|
||||
conn = stomp.Connection([('osiris.yankee.embanet.online', 61613)])
|
||||
|
||||
conn.connect('admin', 'password', wait=True)
|
||||
|
||||
try:
|
||||
|
||||
conn.send(body=channel.strip(), destination='/queue/yankee-sully-channels-monthly')
|
||||
|
||||
finally:
|
||||
|
||||
conn.disconnect()
|
||||
|
||||
Reference in New Issue
Block a user