diff options
| author | Gordon Sim <gsim@apache.org> | 2010-04-06 14:52:47 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2010-04-06 14:52:47 +0000 |
| commit | 331a2bea4eb38cbba44c82e7286c13b147b5519b (patch) | |
| tree | de12d190e624420520d5212bd171979b4941bdeb /qpid/cpp/examples/messaging/queue_sender.cpp | |
| parent | f17f0567c9a77afcb5d61afcfa8e3eb92fbd9c75 (diff) | |
| download | qpid-python-331a2bea4eb38cbba44c82e7286c13b147b5519b.tar.gz | |
QPID-664: added param to control synchronous send and acknowledge
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@931170 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/examples/messaging/queue_sender.cpp')
| -rw-r--r-- | qpid/cpp/examples/messaging/queue_sender.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qpid/cpp/examples/messaging/queue_sender.cpp b/qpid/cpp/examples/messaging/queue_sender.cpp index 0d86f024b3..f7f0e9bf6d 100644 --- a/qpid/cpp/examples/messaging/queue_sender.cpp +++ b/qpid/cpp/examples/messaging/queue_sender.cpp @@ -48,8 +48,7 @@ int main(int argc, char** argv) { } // And send a final message to indicate termination. - sender.send(Message("That's all, folks!")); - session.sync(); + sender.send(Message("That's all, folks!"), true); return 0; } catch(const std::exception& error) { std::cout << error.what() << std::endl; |
