Spring Integration Tutorial (Part 5) – Routers
Part 5 – ROUTERS
In this installment of our Spring Integration tutorial, we examine routers. Routers distribute messages to one or more message channels. Some routers (content routers) examine the message payload or headers in order to select a particular destination message channel. Other routers (recipient list routers) simply distribute the message to all listed message channels.
Here is part 5 of 8 in our Spring Integration Tutorial explaining routers and providing a few examples of SI routers.
After watching the video, try your hand at using routers per Lab 5.
Missed other parts of the tutorial series? Check them out using the links below.
Spring Integration Introduction
Spring Integration Tutorial (Part 1) – Understanding Channels
Spring Integration Tutorial (Part 2) – Adapters
Spring Integration Tutorial (Part 3) – Filters
Spring Integration Tutorial (Part 4) – Transformers
Spring Integration Tutorial (Part 5) – Routers
Spring Integration Tutorial (Part 6) – Enrichers
Spring Integration Tutorial (Part 7) – Service Activators
Spring Integration Tutorial (Part 8) – Gateways
Thanks for this useful tutorial! it realy enables connecting the dots from all the multiple sources.
There is a small mistake at the bottom of page 6 (section 2.1) where the second channel name has to be usaChannel instead of norwaySAChannel.
Omer,
Thanks for reading the blog and downloading/working on the lab. I am glad it was useful. And yes – you are right, there is a typo on page 6, section 2.1. In fact, the code shown is wrong in two spots. The task was to create two message channels that should have been id’ed as norwayChannel and usaChannel. Here is the correction for the code at that step.
Thanks again and best of luck in your Spring Integration work.