2015-03-03 11:12:34 -05:00
|
|
|
# Understanding the Apache ActiveMQ Wildcard Syntax
|
2014-12-04 10:25:29 -05:00
|
|
|
|
2015-03-03 11:12:34 -05:00
|
|
|
Apache ActiveMQ uses a specific syntax for representing wildcards in security
|
2014-12-04 10:25:29 -05:00
|
|
|
settings, address settings and when creating consumers.
|
|
|
|
|
|
|
|
The syntax is similar to that used by [AMQP](http://www.amqp.org).
|
|
|
|
|
2015-03-03 11:12:34 -05:00
|
|
|
An Apache ActiveMQ wildcard expression contains words delimited by the character
|
2014-12-04 10:25:29 -05:00
|
|
|
'`.`' (full stop).
|
|
|
|
|
|
|
|
The special characters '`#`' and '`*`' also have special meaning and can
|
|
|
|
take the place of a word.
|
|
|
|
|
|
|
|
The character '`#`' means 'match any sequence of zero or more words'.
|
|
|
|
|
|
|
|
The character '`*`' means 'match a single word'.
|
|
|
|
|
|
|
|
So the wildcard 'news.europe.\#' would match 'news.europe',
|
|
|
|
'news.europe.sport', 'news.europe.politics', and
|
|
|
|
'news.europe.politics.regional' but would not match 'news.usa',
|
|
|
|
'news.usa.sport' nor 'entertainment'.
|
|
|
|
|
|
|
|
The wildcard 'news.\*' would match 'news.europe', but not
|
|
|
|
'news.europe.sport'.
|
|
|
|
|
|
|
|
The wildcard 'news.\*.sport' would match 'news.europe.sport' and also
|
|
|
|
'news.usa.sport', but not 'news.europe.politics'.
|