summaryrefslogtreecommitdiff
path: root/cpp/examples/messaging/queue_sender.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/examples/messaging/queue_sender.cpp')
-rw-r--r--cpp/examples/messaging/queue_sender.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/examples/messaging/queue_sender.cpp b/cpp/examples/messaging/queue_sender.cpp
index 439e1dffaf..0d86f024b3 100644
--- a/cpp/examples/messaging/queue_sender.cpp
+++ b/cpp/examples/messaging/queue_sender.cpp
@@ -37,7 +37,7 @@ int main(int argc, char** argv) {
Connection connection;
try {
connection.open(url);
- Session session = connection.newSession();
+ Session session = connection.createSession();
Sender sender = session.createSender("message_queue");
// Now send some messages ...