summaryrefslogtreecommitdiff
path: root/cpp/examples/messaging/queue_sender.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/examples/messaging/queue_sender.cpp')
-rw-r--r--cpp/examples/messaging/queue_sender.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/examples/messaging/queue_sender.cpp b/cpp/examples/messaging/queue_sender.cpp
index 1396e26d5c..b2535d90bf 100644
--- a/cpp/examples/messaging/queue_sender.cpp
+++ b/cpp/examples/messaging/queue_sender.cpp
@@ -35,7 +35,8 @@ int main(int argc, char** argv) {
int count = argc>2 ? atoi(argv[2]) : 10;
try {
- Connection connection = Connection::open(url);
+ Connection connection;
+ connection.open(url);
Session session = connection.newSession();
Sender sender = session.createSender("message_queue");