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");

But this failed with an exception:

"Invalid option: protocol not recognised 

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.


Comyno Ltd.
Mainzer Landstrasse 46
60325 Frankfurt


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

View raw message