From the course: Spring: Spring Integration

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Filter Spring Integration messages

Filter Spring Integration messages - Spring Tutorial

From the course: Spring: Spring Integration

Start my 1-month free trial

Filter Spring Integration messages

- [Instructor] As we have learned, filters decide whether a message should be passed along or dropped, based on some injected selection criteria. Now let's build a filtering endpoint together. We will initialize our project files for this lesson with git checkout 03_02b. Now in a previous lesson, we built a notification queue so that our tech support service can notify our user interface of required software updates. What we want to do here is provide a way for our tech support service to send a variety of messages over the same channel, the TechSupportChannel, with only software update messages ending up in our notification queue, there on line 17, updateNotificationQueueChannel. And so the way to do that is to use Spring Integration to configure a filter. We will use the Integration namespace, the filter element, and there are three attributes that are essential that we configure here. The first is the input channel.…

Contents