Return-Path: X-Original-To: apmail-qpid-dev-archive@www.apache.org Delivered-To: apmail-qpid-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 81D39109F0 for ; Mon, 14 Oct 2013 12:50:45 +0000 (UTC) Received: (qmail 92696 invoked by uid 500); 14 Oct 2013 12:50:44 -0000 Delivered-To: apmail-qpid-dev-archive@qpid.apache.org Received: (qmail 92544 invoked by uid 500); 14 Oct 2013 12:50:43 -0000 Mailing-List: contact dev-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@qpid.apache.org Delivered-To: mailing list dev@qpid.apache.org Received: (qmail 92530 invoked by uid 99); 14 Oct 2013 12:50:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Oct 2013 12:50:42 +0000 Date: Mon, 14 Oct 2013 12:50:42 +0000 (UTC) From: "Keith Wall (JIRA)" To: dev@qpid.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (QPID-4874) Alternate exchange unable to set from REST MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/QPID-4874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Keith Wall updated QPID-4874: ----------------------------- Issue Type: Improvement (was: Bug) > Alternate exchange unable to set from REST > ------------------------------------------ > > Key: QPID-4874 > URL: https://issues.apache.org/jira/browse/QPID-4874 > Project: Qpid > Issue Type: Improvement > Components: Java Broker > Affects Versions: 0.20 > Reporter: Michal Zerola > Fix For: Future > > Attachments: alternate_exch_fix.patch > > > This is a follow-up on the discussion started on: > http://mail-archives.apache.org/mod_mbox/qpid-users/201303.mbox/%3CCAFitrpTiPo_yMhitGBM-1=QiW8xnKz3O2tqgSP3xbooDDC=yvQ@mail.gmail.com%3E > I haven't seen any JIRA covering this issue yet. Setting an alternate exchange on the exchange is not possible now from the REST interface (e.g. using curl / web management). > The only way how one can set an alternate exchange is using the proper address from the JMS client and passing it to the _MessageProducer_: > {noformat} > "ADDR:test-exch; {create: always, node:{type: topic,x-declare: {alternate-exchange:'amq.fanout'}}}" > {noformat} > The exchange _test-exch_ will then keep reference to the alternate exchange _amq.fanout_. However, listing the exchange using the _curl_ will fail (produce endless output). I assume that the problem is caused by Json mapper, having problems to write object which is not _ConfiguredObject_ (in this case it is _FanoutExchange_). This problem is reproducible by creating the exchange with alternate exchange reference using the address above and listing the exchange(s) with curl command. I think the solution can be to return the alternate exchange name (and not an object) from the _ExchangeAdapter.java_ as I illustrated in the attached patch. > Thank you, > Michal -- This message was sent by Atlassian JIRA (v6.1#6144) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org For additional commands, e-mail: dev-help@qpid.apache.org