diff options
Diffstat (limited to 'cpp/examples/messaging/queue_receiver.cpp')
-rw-r--r-- | cpp/examples/messaging/queue_receiver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/examples/messaging/queue_receiver.cpp b/cpp/examples/messaging/queue_receiver.cpp index 95756a9a3d..d7bcec1bb2 100644 --- a/cpp/examples/messaging/queue_receiver.cpp +++ b/cpp/examples/messaging/queue_receiver.cpp @@ -34,7 +34,7 @@ int main(int argc, char** argv) { Connection connection; try { connection.open(url); - Session session = connection.newSession(); + Session session = connection.createSession(); Receiver receiver = session.createReceiver("message_queue"); while (true) { Message message = receiver.fetch(); |