summaryrefslogtreecommitdiff
path: root/cpp/examples/messaging/queue_receiver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/examples/messaging/queue_receiver.cpp')
-rw-r--r--cpp/examples/messaging/queue_receiver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/examples/messaging/queue_receiver.cpp b/cpp/examples/messaging/queue_receiver.cpp
index 43dffd8baf..377ce11993 100644
--- a/cpp/examples/messaging/queue_receiver.cpp
+++ b/cpp/examples/messaging/queue_receiver.cpp
@@ -33,7 +33,7 @@ int main(int argc, char** argv) {
Connection connection(url);
try {
- connection.connect();
+ connection.open();
Session session = connection.createSession();
Receiver receiver = session.createReceiver("message_queue");
while (true) {