activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Bertram <jbert...@apache.org>
Subject Re: ARTEMIS - Selector modification
Date Mon, 12 Feb 2018 16:54:19 GMT
In Artemis when a JMS consumer creates a subscription on a topic it creates
a queue on the broker.  If the subscription has a selector then the queue
on the broker is created with a corresponding "filter".  The filter on a
queue is immutable so there's no way to change the subscription's
selector.  You'd have to create a new subscription with the new selector
and *then* drop the old one so that you don't miss any messages.


Justin

On Mon, Feb 12, 2018 at 10:39 AM, adirubin <adirubin@gmail.com> wrote:

> Hi, I'm using Artemis 2.3 via JMS.
> I have a durable shared subscription to a topic, with some selector
> (filter). I would like to change the selector at runtime without
> re-subscribing.
>
> I've found some forum threads regarding ActiveMQ (not artemis) that suggest
> it is possible using jmx:
> http://activemq.2283324.n4.nabble.com/Changing-Message-
> Selector-td2347256.html
>
> Is there any such api for artemis? Or any other solution?
>
>
> My use case in detail: I have a highly-available application subscribed to
> a
> topic (a cluster of 2 or more webservers, using shared subscription). The
> app would like to receive only a subset of the messages, but may be
> upgraded
> to handle additional types. The application must be constantly on-line, so
> the servers are upgraded one at a time. Once a server is upgraded, it'll
> attempt to create a durable sared consumer, but with a different selector,
> and will fail.
>
> Thanks,
> Adi Rubin
>
>
>
>
>
>
>
> --
> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-
> f2341805.html
>

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