From 2ba74656755ffb6dc977c0b4da89dd66cc2c7f78 Mon Sep 17 00:00:00 2001 From: Thomas Peetz Date: Tue, 1 Jul 2025 07:01:34 +0200 Subject: [PATCH] change port and credentials for messages --- kontor-scripts/read_queue.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kontor-scripts/read_queue.py b/kontor-scripts/read_queue.py index 05e12b9..5d2562b 100644 --- a/kontor-scripts/read_queue.py +++ b/kontor-scripts/read_queue.py @@ -21,12 +21,12 @@ class MyListener(stomp.ConnectionListener): if __name__ == '__main__': log = get_logger(args.verbose, args.config) - host = [('127.0.0.1', 61613)] + host = [('127.0.0.1', 61616)] conn = stomp.Connection(host_and_ports=host) conn.set_listener('', MyListener(log)) - conn.connect(username='smx', passcode='smx', wait=True) - conn.subscribe(destination='/queue/queue-1', id=1, ack='auto', headers={}) - conn.send(body='{ "message": "test message"}', destination="/queue/queue-1") + conn.connect(username='artemis', passcode='artemis', wait=True) + conn.subscribe(destination='KontorMediaFile', id=1, ack='auto', headers={}) + conn.send(body='{ "message": "test message"}', destination="KontorMediaFile") time.sleep(10) conn.disconnect()