Show Table of Contents
Chapter 11. Understanding the HornetQ Wildcard Syntax
HornetQ uses a specific syntax for representing wildcards in security settings, address settings, and when creating consumers.
A HornetQ wildcard expression contains words delimited by the character '
.' (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' or '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'.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.