summaryrefslogtreecommitdiff
path: root/cpp/examples/messaging/queue_receiver.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2010-01-28 08:37:37 +0000
committerGordon Sim <gsim@apache.org>2010-01-28 08:37:37 +0000
commite74eaed0bc3665bc38d7cbedce85f85536f92824 (patch)
treef55ff48efa8e2b43c3bf3e0f1d4003b4d7fbe88f /cpp/examples/messaging/queue_receiver.cpp
parenta5318490afdca4c9a16329f2a0e2f9ded0813f36 (diff)
downloadqpid-python-e74eaed0bc3665bc38d7cbedce85f85536f92824.tar.gz
QPID-664: change format of connection options string to match address options; make open() a non-static method.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@904000 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/examples/messaging/queue_receiver.cpp')
-rw-r--r--cpp/examples/messaging/queue_receiver.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/cpp/examples/messaging/queue_receiver.cpp b/cpp/examples/messaging/queue_receiver.cpp
index 058a4e19ae..192b90088d 100644
--- a/cpp/examples/messaging/queue_receiver.cpp
+++ b/cpp/examples/messaging/queue_receiver.cpp
@@ -32,9 +32,8 @@ int main(int argc, char** argv) {
const char* url = argc>1 ? argv[1] : "amqp:tcp:127.0.0.1:5672";
try {
- Variant::Map options;
- if (argc>2) parseOptionString(argv[2], options);
- Connection connection = Connection::open(url, options);
+ Connection connection;
+ connection.open(url);
Session session = connection.newSession();
Receiver receiver = session.createReceiver("message_queue");
while (true) {