Files
yankee-gnome-fire-publisher/jms.py

19 lines
381 B
Python
Raw Permalink Normal View History

2025-03-10 10:38:18 -04:00
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()