summaryrefslogtreecommitdiff
path: root/python/examples/direct
diff options
context:
space:
mode:
Diffstat (limited to 'python/examples/direct')
-rwxr-xr-xpython/examples/direct/declare_queues.py2
-rwxr-xr-xpython/examples/direct/direct_consumer.py2
-rwxr-xr-xpython/examples/direct/direct_producer.py2
-rwxr-xr-xpython/examples/direct/listener.py2
4 files changed, 4 insertions, 4 deletions
diff --git a/python/examples/direct/declare_queues.py b/python/examples/direct/declare_queues.py
index 3cc4a10c0b..13818ee9d7 100755
--- a/python/examples/direct/declare_queues.py
+++ b/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/python/examples/direct/direct_consumer.py b/python/examples/direct/direct_consumer.py
index 6e30541d6c..b07e53c5c7 100755
--- a/python/examples/direct/direct_consumer.py
+++ b/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/python/examples/direct/direct_producer.py b/python/examples/direct/direct_producer.py
index 984d112243..fcbb4675e4 100755
--- a/python/examples/direct/direct_producer.py
+++ b/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/python/examples/direct/listener.py b/python/examples/direct/listener.py
index d1c4b1d645..9d06bd3929 100755
--- a/python/examples/direct/listener.py
+++ b/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()))