You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by qwidjibo <qw...@hotmail.com> on 2007/12/12 19:56:54 UTC

Prioritizing message delivery across overlapping wildcards


Hi All.

I've got a problem that I'm not sure if I can solve in AMQ (I'm using
4.1.1).

I would like to have listeners active on overlapping queue wildcards. For
example, listener 1 listens to FOO.* and listener 2 listens to *.BAR.

This should be all well and good until I get the message FOO.BAR. I'd like
to be able to configure some form of precedence about which one should get
the message in that case.

>From what I've read of exclusive consumers, I think I can fake this when
I've only got one layer by making the FOO.* consumer exclusive, thus forcing
the FOO.BAR message to go to listener 1. My first question is can anybody
confirm that this will or won't work?

My second question is this: can I make this work across multiple levels. I
get the sense that consumer priorities _might_ let me achieve this, but the
documentation on those is somewhat vague.


Thanks!


Nicholas Hanssens
Platform Architect
LocaModa.com







-- 
View this message in context: http://www.nabble.com/Prioritizing-message-delivery-across-overlapping-wildcards-tp14301441s2354p14301441.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Prioritizing message delivery across overlapping wildcards

Posted by Hiram Chirino <hi...@hiramchirino.com>.
Hi yes.. exclusive with priorities should work!  They were designed
for that.  But I warn you that all 3 features used in combination has
not been highly tested.  Please try it out and let us know your
results.  If you develop any junit tests to confirm the expected
behavior please contribute those back to the project so that we can
ensure future compatibility.

On Dec 12, 2007 1:56 PM, qwidjibo <qw...@hotmail.com> wrote:
>
>
> Hi All.
>
> I've got a problem that I'm not sure if I can solve in AMQ (I'm using
> 4.1.1).
>
> I would like to have listeners active on overlapping queue wildcards. For
> example, listener 1 listens to FOO.* and listener 2 listens to *.BAR.
>
> This should be all well and good until I get the message FOO.BAR. I'd like
> to be able to configure some form of precedence about which one should get
> the message in that case.
>
> From what I've read of exclusive consumers, I think I can fake this when
> I've only got one layer by making the FOO.* consumer exclusive, thus forcing
> the FOO.BAR message to go to listener 1. My first question is can anybody
> confirm that this will or won't work?
>
> My second question is this: can I make this work across multiple levels. I
> get the sense that consumer priorities _might_ let me achieve this, but the
> documentation on those is somewhat vague.
>
>
> Thanks!
>
>
> Nicholas Hanssens
> Platform Architect
> LocaModa.com
>
>
>
>
>
>
>
> --
> View this message in context: http://www.nabble.com/Prioritizing-message-delivery-across-overlapping-wildcards-tp14301441s2354p14301441.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>



-- 
Regards,
Hiram

Blog: http://hiramchirino.com

Open Source SOA
http://open.iona.com