diff options
Diffstat (limited to 'cpp/examples/messaging/drain.cpp')
-rw-r--r-- | cpp/examples/messaging/drain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/examples/messaging/drain.cpp b/cpp/examples/messaging/drain.cpp index 41b9503649..ba613ec364 100644 --- a/cpp/examples/messaging/drain.cpp +++ b/cpp/examples/messaging/drain.cpp @@ -95,7 +95,7 @@ int main(int argc, char** argv) if (options.parse(argc, argv)) { Connection connection(options.url, options.connectionOptions); try { - connection.connect(); + connection.open(); Session session = connection.createSession(); Receiver receiver = session.createReceiver(options.address); Duration timeout = options.getTimeout(); |