Wednesday, July 29, 2009

Wildcards in Topics and Queues

The wildcard * means that any token can be in the place of *.
For example: foo.* matches all two-part destination names beginning with foo. including foo.bar and foo.boo, but not foo.bar.boo.

The wildcard > matches one or more trailing elements. For example, foo.> matches foo.bar and foo.bar.boo

Wildcards in Topics:
  • You can subscribe to wildcard topics.
  • You cannot publish to wildcard topics.
  • If foo.bar is not in the configuration file, then you can publish to foo.bar if foo.* or foo.> exists in the configuration file.
Wildcards in Queues:

You can not send or receive to wildcard queue names. However, you can use wildcard queue names in the configuration files.

For example, if the queue configuration file includes a line:
foo.* then users can create queues foo.bar, foo.bob, and so forth, but not foo.bar.bob.

0 comments:

Popular Posts

  © Blogger templates The Professional Template by Ourblogtemplates.com 2008

Back to TOP