From users-return-50887-archive-asf-public=cust-asf.ponee.io@activemq.apache.org Tue Jan 29 14:12:39 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 43F9F180625 for ; Tue, 29 Jan 2019 14:12:39 +0100 (CET) Received: (qmail 48220 invoked by uid 500); 29 Jan 2019 13:12:38 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 48209 invoked by uid 99); 29 Jan 2019 13:12:38 -0000 Received: from mail-relay.apache.org (HELO mailrelay1-lw-us.apache.org) (207.244.88.152) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jan 2019 13:12:38 +0000 Received: from mail-oi1-f171.google.com (mail-oi1-f171.google.com [209.85.167.171]) by mailrelay1-lw-us.apache.org (ASF Mail Server at mailrelay1-lw-us.apache.org) with ESMTPSA id EF216BC4 for ; Tue, 29 Jan 2019 13:12:36 +0000 (UTC) Received: by mail-oi1-f171.google.com with SMTP id v6so16082238oif.2 for ; Tue, 29 Jan 2019 05:12:36 -0800 (PST) X-Gm-Message-State: AJcUukeO3wUetT4iWAgHvFPKk6MSO2M/KDf6ImLKNwFvEDNsnQcJP0PH 0BBpNC6R6OaGEHPUS/GY74VO2mTLATYzW+60zkqLYQ== X-Google-Smtp-Source: ALg8bN52i5UeA0N1qMuWkn9Y8hGfFFTfY/COp+ffPvkfAe2zOq9VA1qP51KLmxt1P8IMfkH+cfUgWEnk7jOzE1CqgYw= X-Received: by 2002:aca:c142:: with SMTP id r63mr9424080oif.98.1548767556279; Tue, 29 Jan 2019 05:12:36 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Justin Bertram Date: Tue, 29 Jan 2019 07:12:09 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: What is the purpose of the RoutingType for a queue in core api To: users@activemq.apache.org Content-Type: multipart/alternative; boundary="00000000000008481f0580988cac" --00000000000008481f0580988cac Content-Type: text/plain; charset="UTF-8" Under the covers the routing type for an address indicates which kind of queues the address supports. The routing type of a queue indicates how messages should be routed from the address to the queue. The routing type can also be set on a message and that also determines how the message should be routed, e.g. a multicast message sent directly to an anycast queue will not actually be routed to that queue and vice versa. Also, if there are multiple types of queues on the same address messages without a routing type are routed differently than those with a routing type. Justin On Tue, Jan 29, 2019 at 5:09 AM Riyafa Abdul Hameed wrote: > Hi, > > I am quite new to ActiveMQ Artemis core api and was trying out different > aspects and I couldn't find a purpose for specifying the RoutingType when > creating a queue: > > session.createAddress(new SimpleString("a"), RoutingType.MULTICAST, true); > session.createQueue("a", RoutingType.MULTICAST, "b", true); > > Whatever the RoutingType I mention for the createQueue function the queues > seem to behave in the same manner. I find that the behavior of the queues > are dependent on the RoutingType of the Address. > > Can someone please point out to me the purpose of the RoutingType for a > queue in Artemis or point out a documentation to me? > > Thank you. > > Faithfully, > Riyafa > --00000000000008481f0580988cac--