activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <>
Subject Re: How to do server side filtering of msgs in topic queues, through STOMP?
Date Mon, 03 Jun 2013 14:21:25 GMT
Can you give it a shot with using wildcard subscriptions? The wildcards
defined on this wiki also work for STOMP subscriptions;

On Fri, May 31, 2013 at 12:55 PM, Sam Roberts <> wrote:

> For those familiar, this is like AMQP's topics, with a "a.b.#" at the
> end of subcription pattern, or of Redis PSUBSCRIBE with "a.b.*", or
> whatever. I want matching on whole words, but if it only prefix
> matches are possible, I guess that's OK, I can cleanup a bit on
> reception.
> I'm looking to subscribe to quotes with patterns like 'a.b' match
> 'a.b.c' and 'a.b', but not 'a', 'a.c', or 'a.bad'.
> I suspect I can use the "selector:" header, and publish with a header like:
>    topickey: a.b.c
> and then subscribe with
>   selector: topickey LIKE 'a.b.%' OR topickey = 'a.b'
> Am I going down the right path here, or is there more direct support for
> this?
> Thanks,
> Sam

*Christian Posta*
twitter: @christianposta

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