activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Bertram <>
Subject Re: What is the purpose of the RoutingType for a queue in core api
Date Tue, 29 Jan 2019 13:12:09 GMT
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.


On Tue, Jan 29, 2019 at 5:09 AM Riyafa Abdul Hameed <>

> 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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message