summaryrefslogtreecommitdiff
path: root/qpid/cpp/examples/messaging/map_sender.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/cpp/examples/messaging/map_sender.cpp')
-rw-r--r--qpid/cpp/examples/messaging/map_sender.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/qpid/cpp/examples/messaging/map_sender.cpp b/qpid/cpp/examples/messaging/map_sender.cpp
index 2d348ded6e..8ce3e1d8ec 100644
--- a/qpid/cpp/examples/messaging/map_sender.cpp
+++ b/qpid/cpp/examples/messaging/map_sender.cpp
@@ -38,7 +38,9 @@ using std::string;
int main(int argc, char** argv) {
const char* url = argc>1 ? argv[1] : "amqp:tcp:127.0.0.1:5672";
const char* address = argc>2 ? argv[2] : "message_queue; {create: always}";
- Connection connection(url);
+ std::string connectionOptions = argc > 3 ? argv[3] : "";
+
+ Connection connection(url, connectionOptions);
try {
connection.open();
Session session = connection.createSession();