qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Welchlin <andreas.welch...@comyno.com>
Subject Re: Connection setOption "protocol" is not possible
Date Thu, 05 Jun 2014 10:52:14 GMT
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: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>

-- 
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