From users-return-4688-apmail-qpid-users-archive=qpid.apache.org@qpid.apache.org Thu Aug 11 14:54:13 2011 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 0A66C7A8D for ; Thu, 11 Aug 2011 14:54:13 +0000 (UTC) Received: (qmail 38500 invoked by uid 500); 11 Aug 2011 14:54:12 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 38417 invoked by uid 500); 11 Aug 2011 14:54:12 -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 38409 invoked by uid 99); 11 Aug 2011 14:54:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2011 14:54:11 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.210.182] (HELO mail-iy0-f182.google.com) (209.85.210.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2011 14:54:04 +0000 Received: by iye1 with SMTP id 1so159213iye.13 for ; Thu, 11 Aug 2011 07:53:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.123.96 with SMTP id o32mr12817093ibr.67.1313074422577; Thu, 11 Aug 2011 07:53:42 -0700 (PDT) Sender: afoglia@joinprinceton.com Received: by 10.231.11.1 with HTTP; Thu, 11 Aug 2011 07:53:42 -0700 (PDT) X-Originating-IP: [184.75.42.178] In-Reply-To: <4E43E8F1.1080109@redhat.com> References: <4E43E8F1.1080109@redhat.com> Date: Thu, 11 Aug 2011 10:53:42 -0400 X-Google-Sender-Auth: O-v7mF5KYdpsU67YsVejeV56EOE Message-ID: Subject: Re: Queues that exist only when their are receivers From: Anthony Foglia To: users@qpid.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Thu, Aug 11, 2011 at 10:36 AM, Gordon Sim wrote: > On 08/11/2011 03:18 PM, Anthony Foglia wrote: >> >> We're trying to create a topology where we have an exchange with a >> queue bound to it, such that while there are receivers attached to the >> queue, the queue exists, but when there are no receivers the queue >> goes away. =A0(The exchange has an alternate exchange which sends the >> message across a federated queue to another broker.) >> >> We are creating the receiver with an address "binding_bug_queue; { >> create: always, node: { type: queue, durable: False, x-declare: { >> exclusive: False, auto-delete: True } }, link: { durable: False, >> x-bindings: [ { exchange : 'binding_bug_exchange', key: 'init' } ] } >> }". > > Move the x-bindings into the node. The bindings for the node are created = and > deleted if and when the node itself is created or deleted. The bindings f= or > the link should be scoped to the life of the sender/receiver in question > (i.e. the logical link to/from the node). > > The python client will be fixed to correctly remove the bindings when the > link is closed. Thanks for the quick response. That does the trick. --=20 Anthony Foglia Princeton Consultants (609) 987-8787 x233 --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:users-subscribe@qpid.apache.org