Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B7236200B8B for ; Tue, 4 Oct 2016 11:01:44 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B4103160AC9; Tue, 4 Oct 2016 09:01:44 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 049B8160AC5 for ; Tue, 4 Oct 2016 11:01:43 +0200 (CEST) Received: (qmail 27839 invoked by uid 500); 4 Oct 2016 09:01:43 -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 27826 invoked by uid 99); 4 Oct 2016 09:01:42 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2016 09:01:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 6245B180538 for ; Tue, 4 Oct 2016 09:01:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.011 X-Spam-Level: * X-Spam-Status: No, score=1.011 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id U7HHUJYy5fQy for ; Tue, 4 Oct 2016 09:01:38 +0000 (UTC) Received: from mail-ua0-f176.google.com (mail-ua0-f176.google.com [209.85.217.176]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 3A3155F4EC for ; Tue, 4 Oct 2016 09:01:38 +0000 (UTC) Received: by mail-ua0-f176.google.com with SMTP id r64so9629934uar.3 for ; Tue, 04 Oct 2016 02:01:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=rH5tXjFtx9thKnW9OHIEZ/8oTaJ6DqSlWdIudJwU0ds=; b=dF1APdMJq1SES5SpMkLUUFrsTwfDeMlLjXmGbYjw9SZXj5KRUFex5du1KlOZSexOhk /nU/Gw2ansewLy509JU22Jh8QWjMWF8CNND9WF4UHOsxbUETRmSI0PgZCqKzq0Yq/leh SjIrmdGSQqc/vEtlV09V1NUrvlbQRAIKg5StanjRx9c4gw2NOsXh3PJ7JLzKM9OBYeeo WTa1ScQ5oNbnWyNxp2DFKvyIUjmpHbtTU7ESj+aPKcMQMGughw1jIXRXyPU5GMwOO883 JD8V+V+NMbFvqVR1CEor2c6PWkmvXhZphHdS+qYNORmxfcYqoreQVYweX6uALW2CtCgw ckPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=rH5tXjFtx9thKnW9OHIEZ/8oTaJ6DqSlWdIudJwU0ds=; b=CksGZN4/LIiQvhqO1g1pKRQ18YmYaJMAJw0+/SWwoeFLJsh/Hz4fWbERYdEacYWjrI eimCpOf8v/h+5khC1uaXIY/wMdZbExxJ2qONWBRMh8VmqlDAQxUNLHLOjGq9x+4tJ9/O 94Ik5mFf+eQI+DLqqjknSJIgyioTJZVb1fARUBpxzd7oEMxsFbME+iBMbiDMhRs24By2 GLaSFqnoEl41q9/+fqzswHuSoQlvi+ZOTbnoOlyprUHLibLBlgKo6ALtDBvu01CDv1iw 4vXmutoxOPcMve4Nau0XQc574b6t+hyhetOsjV9/uyBKitFNxLqGznoXuULJxzoh5HQN jIjg== X-Gm-Message-State: AA6/9RkXfhK1CWD4g2Y/WGuaYDLOIRPLxbLcxxwOM8GRbN02uxfLH52tw7EBTUPpM+ZBnXE3f+/AUdRjgJHaAA== X-Received: by 10.176.83.147 with SMTP id k19mr1114655uaa.38.1475571697701; Tue, 04 Oct 2016 02:01:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.70.87 with HTTP; Tue, 4 Oct 2016 02:01:37 -0700 (PDT) In-Reply-To: <1475569439485-7651458.post@n2.nabble.com> References: <1475569439485-7651458.post@n2.nabble.com> From: Rob Godfrey Date: Tue, 4 Oct 2016 10:01:37 +0100 Message-ID: Subject: Re: Java Broker exclusive binding To: "users@qpid.apache.org" Content-Type: text/plain; charset=UTF-8 archived-at: Tue, 04 Oct 2016 09:01:44 -0000 Hi Vavricka, I'm not sure I totally understand your question... if you have one queue with two bindings and a message matches both bindings, the message will still only be placed on the queue once. Do you actually mean you have two queues, A and B, and A is bound to the exchange with the key 'test.#' and B is bound to the exchange with key '#', and a message with routing key 'test.foo' is sent, then the message will be enqueued in both queues, but you would want it only to be enqueued into A? I think what you are looking for here is a new type of exchange (or a variation on the topic exchange) where the message is routed to at most one binding - which would require bindings to have some sort or ordering / priority placed upon them. There is nothing like that currently. If you have a small number of alternatives and are able to modify the senders so that they add the routing key information into a message header, you could use selectors on the bindings so that the binding for '#' also included a selector "my_routing_header not like 'test.%'" or something like that... -- Rob On 4 October 2016 at 09:23, Vavricka wrote: > Hi, > > I am using java broker version 6.0.2. I have one queue named 'test.queue' > and on this queue set two bindings. First binding is more specific 'test.#' > and second binding is '#'. > > When I send message with routing key 'test.a', message is forwarded by both > bindings. Is it possible to set bindings (or queue) to use only the most > specific option (binding 'test.#') when it can be applied? > > I know that similar behavior (like binding '#') can be achieved by setting > alternate exchange, but it will be helpful if some configuration options > could allow using only one binding for routed message. > > In REST API definitions I found attribute named 'type' which looks > promising, but unfortunately I couldn't find any documentation about it. > > Vavricka > > > > -- > View this message in context: http://qpid.2158936.n2.nabble.com/Java-Broker-exclusive-binding-tp7651458.html > Sent from the Apache Qpid users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org > For additional commands, e-mail: users-help@qpid.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org For additional commands, e-mail: users-help@qpid.apache.org