diff options
Diffstat (limited to 'qpid/cpp/examples/messaging/topic_sender.cpp')
-rw-r--r-- | qpid/cpp/examples/messaging/topic_sender.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/examples/messaging/topic_sender.cpp b/qpid/cpp/examples/messaging/topic_sender.cpp index 5dd593ff8a..9d4cd582cf 100644 --- a/qpid/cpp/examples/messaging/topic_sender.cpp +++ b/qpid/cpp/examples/messaging/topic_sender.cpp @@ -51,9 +51,9 @@ int main(int argc, char** argv) { const char* url = argc>1 ? argv[1] : "amqp:tcp:127.0.0.1:5672"; int count = argc>2 ? atoi(argv[2]) : 10; - Connection connection; + Connection connection(url); try { - connection.open(url); + connection.connect(); Session session = connection.createSession(); Sender sender = session.createSender("news_service"); |