Return-Path: X-Original-To: apmail-qpid-users-archive@www.apache.org Delivered-To: apmail-qpid-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 53C8511E91 for ; Thu, 5 Jun 2014 10:44:56 +0000 (UTC) Received: (qmail 47864 invoked by uid 500); 5 Jun 2014 10:44:56 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 47818 invoked by uid 500); 5 Jun 2014 10:44:56 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 47808 invoked by uid 99); 5 Jun 2014 10:44:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jun 2014 10:44:56 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gsim@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jun 2014 10:44:52 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s55AiQit011571 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 5 Jun 2014 06:44:26 -0400 Received: from [10.36.116.53] (ovpn-116-53.ams2.redhat.com [10.36.116.53]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s55AiOSs027803 for ; Thu, 5 Jun 2014 06:44:25 -0400 Message-ID: <53904A02.1000903@redhat.com> Date: Thu, 05 Jun 2014 11:44:18 +0100 From: Gordon Sim Organization: Red Hat UK Ltd, Registered in England and Wales under Company Registration No. 3798903, Directors: Michael Cunningham (USA), Matt Parsons (USA), Charlie Peters (USA), Michael O'Neill (Ireland) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: users@qpid.apache.org Subject: Re: Connection setOption "protocol" is not possible References: <53903AF9.1080901@comyno.com> In-Reply-To: <53903AF9.1080901@comyno.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-Virus-Checked: Checked by ClamAV on apache.org 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