You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Next »

Message Filter

The Message Filter from the EIP patterns allows you to filter messages

The following example shows how to create a Message Filter route consuming messages from an endpoint called queue:a which if the Predicate is true will be dispatched to queue:b

Using the Fluent Builders

Error formatting macro: snippet: java.lang.NullPointerException

You can of course use many different Predicate languages such as XPath, XQuery, SQL or various Scripting Languages. Here is an XPath example

Error formatting macro: snippet: java.lang.NullPointerException

Using the Spring XML Extensions

Error formatting macro: snippet: java.lang.NullPointerException

To experiment with this pattern you could use the junit test case

  • No labels