Search

Chapter 11. Understanding the HornetQ Wildcard Syntax

download PDF
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'.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.