summaryrefslogtreecommitdiff
path: root/cpp/examples/messaging/drain.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2010-04-09 15:08:47 +0000
committerGordon Sim <gsim@apache.org>2010-04-09 15:08:47 +0000
commitef958e7b221d38ec76c392f76a66978211d6d1f9 (patch)
tree111ba60857b7613f18e64f5c817d6e271428013e /cpp/examples/messaging/drain.cpp
parent2daf8e11866364ff4955ee69625bf401e9baa93c (diff)
downloadqpid-python-ef958e7b221d38ec76c392f76a66978211d6d1f9.tar.gz
QPID-664: changed connect() back to open(),removed detach(),defined new exception hierarchy, added ability to re-use reconnect/replay logic for resource-limit-exceeded errors
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@932451 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/examples/messaging/drain.cpp')
-rw-r--r--cpp/examples/messaging/drain.cpp2
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();