Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 5 Subject Names : Using Wildcards to Receive Related Subjects

Using Wildcards to Receive Related Subjects
Programs can listen for wildcard subject names to access a collection of related data through a single subscription.
The asterisk (*) is a wildcard character that matches any one element. The asterisk substitutes for whole elements only, not for partial substrings of characters within an element.
Greater-than (>) is a wildcard character that matches all the elements remaining to the right.
A listener for a wildcard subject name receives any message whose subject name matches the wildcard.
The following examples illustrate wildcard syntax and matching semantics.
RUN.Run.run (extra element)
Run.away (case)
RUN (missing element)
Yankees.beat.Sox (vs≠beat)
Yankees.vs (missing element)
your (missing elements)
HOME.RUN (position)
Run.away (case)
RUN (missing element)
 
Asterisk (*) must take the place of one whole element, not a substring within a element.
Greater-than (>) can only appear as the right-most character.
Wildcard Sending
 

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved