qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Welchlin <andreas.welch...@comyno.com>
Subject Connection setOption "protocol" is not possible
Date Thu, 05 Jun 2014 09:40:09 GMT

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

-- 
Comyno Ltd.
Mainzer Landstrasse 46
60325 Frankfurt

www.comyno.com


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Mime
View raw message