Spring Integration Tutorial (Part 5) - Routers

8,106 views

Published on

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.

Published in: Software
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
8,106
On SlideShare
0
From Embeds
0
Number of Embeds
6,653
Actions
Shares
0
Downloads
98
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Spring Integration Tutorial (Part 5) - Routers

  1. 1. Copyright © 2014 by Intertech, Inc.
  2. 2. Copyright © 2014 by Intertech, Inc.
  3. 3. Copyright © 2014 by Intertech, Inc.
  4. 4. <int:payload-type-router input-channel="inboundChannel"> <int:mapping type="java.lang.Double" channel="doubleChannel" /> <int:mapping type="java.lang.Integer" channel="integerChannel" /> </int:payload-type-router> <mapping> Copyright © 2014 by Intertech, Inc.
  5. 5. <int:recipient-list-router id="listRouter" input-channel="inboundChannel"> <int:recipient channel="outboundA"/> <int:recipient channel="outboundB"/> </int:recipient-list-router> <recipient> Copyright © 2014 by Intertech, Inc.
  6. 6. Copyright © 2014 by Intertech, Inc.

×