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 57D7994CC for ; Wed, 5 Oct 2011 08:28:54 +0000 (UTC) Received: (qmail 58080 invoked by uid 500); 5 Oct 2011 08:28:54 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 58058 invoked by uid 500); 5 Oct 2011 08:28:54 -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 58050 invoked by uid 99); 5 Oct 2011 08:28:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Oct 2011 08:28:54 +0000 X-ASF-Spam-Status: No, hits=-3.7 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.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; Wed, 05 Oct 2011 08:28:48 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p958SRR2030595 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 5 Oct 2011 04:28:27 -0400 Received: from [10.11.9.23] (vpn-9-23.rdu.redhat.com [10.11.9.23]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p958SOEF008830 for ; Wed, 5 Oct 2011 04:28:26 -0400 Message-ID: <4E8C1500.8040800@redhat.com> Date: Wed, 05 Oct 2011 09:27:44 +0100 From: Gordon Sim Organization: Red Hat UK Ltd, Registered in England and Wales under Company Registration No. 3798903, Directors: Michael Cunningham (USA), Mark Hegarty (Ireland), Matt Parsons (USA), Charlie Peters (USA) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.15) Gecko/20101027 Fedora/3.0.10-1.fc12 Lightning/1.0b1 Thunderbird/3.0.10 MIME-Version: 1.0 To: users@qpid.apache.org Subject: Re: problem with Qpidd References: <4E8421DE.9090602@redhat.com> <4E8445DB.5010103@redhat.com> <4E8451C4.8010208@redhat.com> <4E845C7E.3030708@redhat.com> <4E847CFB.30305@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 On 09/30/2011 06:37 AM, surya prakash wrote: > In qpid::messaging API i didn't found queue declare things ,so that i moved > to qpid::client API For creating queues you have a number of options to chose from depending on the different use cases. (1) For pub-sub subscriptions, the library will take care of the declare and bind for you. So if you wish to get all messages matching a particular key - say my-key, sent to a particular exchange - say my-exchange - you simply create a receiver with address 'my-exchange/my-key'. (You can use the same address for senders of course). (2) To create a response queue in a request-response pattern, the address options allow you to have the queue created on demand when opening the receiver (or indeed a sender, though less obviously useful in this particular pattern). This approach also lets you control the underlying declare (in the case of AMQP 0-10) E.g. you can create a receiver for the address 'my-queue; {create: always, node:{x-declare:{auto-delete:True}}}' (3) You can use the qpid-config tool to create exchanges, queues and bindings statically, separate from your application logic. This is often a good idea. (4) The tools as above use a message-based protocol - QMF - which you can also use directly (or through a separate QMF API). This is an area that needs better documentation but the following mail should provide sufficient pointers should this be appropriate to your needs: http://apache-qpid-users.2158936.n2.nabble.com/Delete-queue-exchange-binding-from-C-client-tp6472921p6473491.html --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:users-subscribe@qpid.apache.org