Thank you, Gordon!
Am 05.06.2014 12:44, schrieb Gordon Sim:
On 06/05/2014 10:40 AM, Andreas Welchlin wrote:
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?
Thanks for pointing that out Andreas! I have checked in a fix (and
also added an explanation of the protocol option):
http://svn.apache.org/viewvc?view=revision&revision=1600589
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--
Comyno Ltd.
Mainzer Landstrasse 46
60325 Frankfurt
www.comyno.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]