You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jb...@apache.org on 2020/05/09 05:35:38 UTC
[activemq] branch master updated: conn.start deprecated,
id argument necessary by conn.subscribe
This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq.git
The following commit(s) were added to refs/heads/master by this push:
new 924d0d1 conn.start deprecated, id argument necessary by conn.subscribe
new 0bdaf88 Merge pull request #528 from mparada/update-stomp-py-example
924d0d1 is described below
commit 924d0d1d2dfe37744d3b29bec945e5d3d10e4b13
Author: Marcelo Parada <ma...@gmail.com>
AuthorDate: Thu May 7 15:45:56 2020 +0200
conn.start deprecated, id argument necessary by conn.subscribe
---
assembly/src/release/examples/stomp/python/stomppy/listener.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/assembly/src/release/examples/stomp/python/stomppy/listener.py b/assembly/src/release/examples/stomp/python/stomppy/listener.py
index 81fadaf..2c3fe0b 100755
--- a/assembly/src/release/examples/stomp/python/stomppy/listener.py
+++ b/assembly/src/release/examples/stomp/python/stomppy/listener.py
@@ -56,9 +56,8 @@ class MyListener(object):
conn = stomp.Connection(host_and_ports = [(host, port)])
conn.set_listener('', MyListener(conn))
-conn.start()
conn.connect(login=user,passcode=password)
-conn.subscribe(destination=destination, ack='auto')
+conn.subscribe(destination=destination, id=1, ack='auto')
print("Waiting for messages...")
while 1:
time.sleep(10)