summaryrefslogtreecommitdiff
path: root/cpp/examples/messaging/hello_world.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/examples/messaging/hello_world.cpp')
-rw-r--r--cpp/examples/messaging/hello_world.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/examples/messaging/hello_world.cpp b/cpp/examples/messaging/hello_world.cpp
index f861a02d97..360a22d1c2 100644
--- a/cpp/examples/messaging/hello_world.cpp
+++ b/cpp/examples/messaging/hello_world.cpp
@@ -16,9 +16,9 @@ int main() {
connection.open();
Session session = connection.createSession();
- std::string queueName = "message_queue";
+ std::string address = "message_queue";
- Sender sender = session.createSender(queueName);
+ Sender sender = session.createSender(address);
for (int i=0; i<5; i++) {
std::stringstream content;
@@ -28,7 +28,7 @@ int main() {
}
sender.close();
- Receiver receiver = session.createReceiver(queueName);
+ Receiver receiver = session.createReceiver(address);
Message message;
Duration timeout(1000); /* in milliseconds */