From 13d4a7f61d6b4b9935d88e97d14eda29c9ad0950 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Thu, 8 Apr 2010 09:49:04 +0000 Subject: QPID-664: changed open() to connect(), moved url parameter to constructor, added detach() and isConnected() git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@931852 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/examples/messaging/spout.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qpid/cpp/examples/messaging/spout.cpp') diff --git a/qpid/cpp/examples/messaging/spout.cpp b/qpid/cpp/examples/messaging/spout.cpp index 61b3f88711..9ed8b642c8 100644 --- a/qpid/cpp/examples/messaging/spout.cpp +++ b/qpid/cpp/examples/messaging/spout.cpp @@ -156,9 +156,9 @@ int main(int argc, char** argv) { Options options(argv[0]); if (options.parse(argc, argv)) { - Connection connection(options.connectionOptions); + Connection connection(options.url, options.connectionOptions); try { - connection.open(options.url); + connection.connect(); Session session = connection.createSession(); Sender sender = session.createSender(options.address); -- cgit v1.2.1