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 CCD286556 for ; Mon, 25 Jul 2011 14:10:01 +0000 (UTC) Received: (qmail 16959 invoked by uid 500); 25 Jul 2011 14:10:01 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 16934 invoked by uid 500); 25 Jul 2011 14:10:00 -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 16926 invoked by uid 99); 25 Jul 2011 14:10:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jul 2011 14:10:00 +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; Mon, 25 Jul 2011 14:09:53 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p6PE9VS5012239 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 25 Jul 2011 10:09:31 -0400 Received: from [10.3.227.81] (vpn-227-81.phx2.redhat.com [10.3.227.81]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p6PE9VKZ028188 for ; Mon, 25 Jul 2011 10:09:31 -0400 Message-ID: <4E2D78DF.2020409@redhat.com> Date: Mon, 25 Jul 2011 15:08:31 +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: issues migrating from qpid0.8 to qpid0.10 References: <1311598915.44949.YahooMailClassic@web114314.mail.gq1.yahoo.com> In-Reply-To: <1311598915.44949.YahooMailClassic@web114314.mail.gq1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-Virus-Checked: Checked by ClamAV on apache.org On 07/25/2011 02:01 PM, Nithesh Shetty wrote: > This link does not provide any api to create exchange > or assign an alternate exchange to a queue. Read sections 2.4.3 and 2.16. I'd also consider why you need to create exchanges and queues at runtime rather than have them preconfigured. To create an exchange (direct exchange in this example): 'my-exchange; {create: always, node: {type: topic, x-declare:{type:direct}}' To create a shared queue with a given alternate-exchange: 'my-queue; {create: always, node:{x-declare:{alternate-exchange:my-exchange}}}' and to specify an alternate exchange on a subscription queue (bound to amq.topic with my-subject): amq.topic/my-subject; {link:{x-declare:{alternate-exchange:my-exchange}} --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:users-subscribe@qpid.apache.org