Spring Integration Filters

Filters allow, on the basis of a message’s content or metadata (in the message header), a message to pass from one channel to the next or reject and discard the message from the system – that is, not allowing the rejected message into the next channel. 

Not all messages are of interest. That is, there is often a need to filter out some messages
that enter a channel. Applications may only want to get messages formatted in a certain
way (XML or JSON). Applications may only be interested in certain types of data (new sales
messages but not messages about shipments). Other application may be interested in
messages with certain message headers (for example when a message was created – only
wanting to look at messages created after 5pm).
In this lab, you explore Spring Integration (SI) filters to examine messages in a channel and
accept those of interest and discard the others.
Specifically, in this lab you will:

  • Implement the SI MessageSelector interface and configure an SI filter.
  • Explore and configure a built-in SI XPath filter to sort XML messages.
  • Work with a built-in SI Validation filter to week out non-validating XML messages

Above 3 points will be covered in 3 labs and in this lab we will focus on MessageSelector and SI Filter

Popular posts from this blog

Window function in PySpark with Joins example using 2 Dataframes (inner join)

Complex SQL: fetch the users who logged in consecutively 3 or more times (lead perfect example)

Credit Card Data Analysis using PySpark (how to use auto broadcast join after disabling it)