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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/examples/messaging/queue_sender.cpp b/cpp/examples/messaging/queue_sender.cpp
index fa355dbf88..0592c30b60 100644
--- a/cpp/examples/messaging/queue_sender.cpp
+++ b/cpp/examples/messaging/queue_sender.cpp
@@ -36,7 +36,7 @@ int main(int argc, char** argv) {
Connection connection(url);
try {
- connection.connect();
+ connection.open();
Session session = connection.createSession();
Sender sender = session.createSender("message_queue");