Apparently I did have a different definition in mind: I was interpreting
"redistribution" as "redelivery", which would happen when a transaction was
rolled back or a client disconnected with unacknowledged messages.  Clearly
that's not what Artemis means by that term, and what's meant is clearly not
that.  I'm not aware of much difference in ActiveMQ between how a broker
sends messages when a client is connected and how it sends them when a
client connects later (and ActiveMQ supports both scenarios seamlessly), so
ActiveMQ doesn't highlight a distinction between the two scenarios.
Messages sent to an ActiveMQ broker will make their way to an eligible
client (including one using a selector) irrespective of whether a selector
is in use.

So now I'm curious: in the Artemis codebase, what's different enough about
the two scenarios to cause selectors to work in one case but not the other?

Tim

On Fri, Oct 30, 2015 at 8:25 AM, Justin Bertram <jbert...@apache.com> wrote:

> I'm a bit confused by your comment, Tim.
>
> When I think of "first-time distribution" I think of when the message
> arrives on the cluster for the first time and it is distributed to a node
> with a matching consumer.  Artemis supports this for consumers with
> selectors.
>
> When I think of "redistribution" I think of when the message arrives on
> the cluster for the first time and there are no matching consumers and then
> later a matching consumer connects to another node in the cluster and the
> message is redistributed to that node.  Artemis doesn't support this for
> consumers with selectors.
>
> To me, the question about "messages produced while the queue consumer is
> disconnected" is about redistribution - at least how Artemis defines it.
> Based on your comment it appears you have different ideas about what
> "redistribution" and "first-time distribution" means.  Can you clarify?
>
>
> Justin
>
> ----- Original Message -----
> From: "Tim Bain" <tb...@alumni.duke.edu>
> To: "ActiveMQ Users" <users@activemq.apache.org>
> Sent: Friday, October 30, 2015 8:31:20 AM
> Subject: Re: artemis cluster don't redistribute message
>
> This isn't redistribution, it's first-time distribution: the question is
> about messages produced while the queue consumer is disconnected.  And that
> definitely does work in ActiveMQ.
> On Oct 29, 2015 9:14 PM, "Clebert Suconic" <clebert.suco...@gmail.com>
> wrote:
>
> > Ah... based on selectors...
> >
> > I don't think ActiveMQ5 supports it either.. it's a fundamental
> > problem that usually goes against the messaging context.
> >
> >
> > Most of times I have seen this pattern being used the Messaging system
> > was being used for store & retrieve. I.e. a database like application.
> > which usually tends to fail.
> >
> > I'm not saying it's your case.. but it's been the case most times I
> > seen that need.
> >
> > On Thu, Oct 29, 2015 at 10:40 PM, Justin Bertram <jbert...@apache.com>
> > wrote:
> > > As far as I know redistribution based on selectors is not currently
> > supported in Artemis.
> > >
> > >
> > > Justin
> >
> >
> >
> > --
> > Clebert Suconic
> >
>

Reply via email to