HornetQ Filters Expressions
Chapter 14. Filter Expressions HornetQ provides a powerful filter language based on a subset of the SQL 92 expression syntax. It is the same as the syntax used for JMS selectors, but the predefined identifiers are different. For documentation on JMS selector syntax please the JMS javadoc for javax.jms.Message. Filter expressions are used in several places in HornetQ Predefined Queues. When pre-defining a queue, either in hornetq-configuration.xml or hornetq-jms.xml a filter expression can be defined for a queue. Only messages that match the filter expression will enter the queue. Core bridges can be defined with an optional filter expression, only matching messages will be bridged (see Chapter 36, Core Bridges). Diverts can be defined with an optional filter expression, only matching messages will be diverted (see Chapter 35, Diverting and Splitting Message Flows). Filter are also used programmatically when creating consumers, queues and in several places as described in Chapter 30, Management.