diff options
| author | Jonathan Robie <jonathan@apache.org> | 2008-12-16 18:50:55 +0000 |
|---|---|---|
| committer | Jonathan Robie <jonathan@apache.org> | 2008-12-16 18:50:55 +0000 |
| commit | cab5db31674b25b3c70b2ac5ed4ea97ab413f932 (patch) | |
| tree | 34c398750a3aea7ec0ce1b92fec2a91a0f49da62 /qpid/python/examples/direct | |
| parent | 2bfa65fcea4fee81620a7325fc75a347d013bd72 (diff) | |
| download | qpid-python-cab5db31674b25b3c70b2ac5ed4ea97ab413f932.tar.gz | |
Modified Connect() constructor throughout. User name and password are now
supplied for the connection. (Someone changed this, and it no longer matched
the original tutorial.)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@727116 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/examples/direct')
| -rwxr-xr-x | qpid/python/examples/direct/declare_queues.py | 2 | ||||
| -rwxr-xr-x | qpid/python/examples/direct/direct_consumer.py | 2 | ||||
| -rwxr-xr-x | qpid/python/examples/direct/direct_producer.py | 2 | ||||
| -rwxr-xr-x | qpid/python/examples/direct/listener.py | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/qpid/python/examples/direct/declare_queues.py b/qpid/python/examples/direct/declare_queues.py index 3cc4a10c0b..13818ee9d7 100755 --- a/qpid/python/examples/direct/declare_queues.py +++ b/qpid/python/examples/direct/declare_queues.py @@ -54,7 +54,7 @@ if len(sys.argv) > 2 : # Create a connection. socket = connect(host, port) -connection = Connection (sock=socket) +connection = Connection (sock=socket, username=user, password=password) connection.start() session = connection.session(str(uuid4())) diff --git a/qpid/python/examples/direct/direct_consumer.py b/qpid/python/examples/direct/direct_consumer.py index 6e30541d6c..b07e53c5c7 100755 --- a/qpid/python/examples/direct/direct_consumer.py +++ b/qpid/python/examples/direct/direct_consumer.py @@ -52,7 +52,7 @@ if len(sys.argv) > 2 : # Create a connection. socket = connect(host, port) -connection = Connection (sock=socket) +connection = Connection (sock=socket, username=user, password=password) connection.start() session = connection.session(str(uuid4())) diff --git a/qpid/python/examples/direct/direct_producer.py b/qpid/python/examples/direct/direct_producer.py index 984d112243..fcbb4675e4 100755 --- a/qpid/python/examples/direct/direct_producer.py +++ b/qpid/python/examples/direct/direct_producer.py @@ -52,7 +52,7 @@ if len(sys.argv) > 2 : # Create a connection. socket = connect(host, port) -connection = Connection (sock=socket) +connection = Connection (sock=socket, username=user, password=password) connection.start() session = connection.session(str(uuid4())) diff --git a/qpid/python/examples/direct/listener.py b/qpid/python/examples/direct/listener.py index d1c4b1d645..9d06bd3929 100755 --- a/qpid/python/examples/direct/listener.py +++ b/qpid/python/examples/direct/listener.py @@ -73,7 +73,7 @@ if len(sys.argv) > 2 : # Create a connection. socket = connect(host, port) -connection = Connection (sock=socket) +connection = Connection (sock=socket, username=user, password=password) connection.start() session = connection.session(str(uuid4())) |
