diff options
author | Gordon Sim <gsim@apache.org> | 2008-11-13 18:48:43 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2008-11-13 18:48:43 +0000 |
commit | 7fbb0e83cc1a44b14211dcd4e42d3ebdeba2f64e (patch) | |
tree | f093090ab9827b853e323ef441135370d145ee0a /cpp/examples/direct/direct_producer.cpp | |
parent | a9a2e91cdba870df5ae91e8f9c6734a947a97841 (diff) | |
download | qpid-python-7fbb0e83cc1a44b14211dcd4e42d3ebdeba2f64e.tar.gz |
Minor cleanup edits to examples (from jrobie@redhat.com)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@713785 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/examples/direct/direct_producer.cpp')
-rw-r--r-- | cpp/examples/direct/direct_producer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/examples/direct/direct_producer.cpp b/cpp/examples/direct/direct_producer.cpp index 8719fa263f..7cca1955cf 100644 --- a/cpp/examples/direct/direct_producer.cpp +++ b/cpp/examples/direct/direct_producer.cpp @@ -68,7 +68,6 @@ int main(int argc, char** argv) { int count = argc>3 ? atoi(argv[3]) : 10; Connection connection; - Message message; try { connection.open(host, port); Session session = connection.newSession(); @@ -80,6 +79,7 @@ int main(int argc, char** argv) { // just once. (In most simple cases, there is no need to set // other message properties.) + Message message; message.getDeliveryProperties().setRoutingKey("routing_key"); // Now send some messages ... |