Hi All,
I tried to establish an AMQP connection using ssl.
So I used (after reading the book "Using the Qpid Messaging API"):
Connection connection("localhost:5672");
connection.setOption("protocol", "ssl");
connection.open();
But this failed with an exception:
"Invalid option: protocol not recognised
(/builddir/build/BUILD/qpid-0.26/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp:166)"
Looking into the code I could see the reason:
} else if (name == "transport") {
settings.protocol = value.asString();
So the correct usage is:
connection.setOption("transport", "ssl");
Please could someone change the documentation?
In all documents which I found the (old?) name "procotol" is used.
Regards,
Andreas
www.comyno.com
I tried to establish an AMQP connection using ssl.
So I used (after reading the book "Using the Qpid Messaging API"):
Connection connection("localhost:5672");
connection.setOption("protocol", "ssl");
connection.open();
But this failed with an exception:
"Invalid option: protocol not recognised
(/builddir/build/BUILD/qpid-0.26/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp:166)"
Looking into the code I could see the reason:
} else if (name == "transport") {
settings.protocol = value.asString();
So the correct usage is:
connection.setOption("transport", "ssl");
Please could someone change the documentation?
In all documents which I found the (old?) name "procotol" is used.
Regards,
Andreas
www.comyno.com