Spring Integration Routers LAB-13
Create a recipient list router:
Recipient list routers are meant to disburse received messages to all of its outbound
channels without regard for message header or payload content. If you will, a recipient list
router simply blasts incoming messages to all the channels listed as “recipients.”
In this step, you create a recipient router to route Norway ship orders to both a file adapter
and a service activator that prints out information regarding the Norway ship order to the
Console view.
Add two new Norway message channels.
There needs to be two new message channels to serve as recipients of the Norway messages. The first new channel will take messages that will ultimately be routed to the file system. The second new channel will receive messages that will ultimately be routed to the service activator.
<int:channel id=”norwayFileChannel” />
<int:channel id=”norwaySAChannel” />
Change the File adapter for the Norway messages to now get its messages from the
norwayFileChannel and not the norwayChannel
Add a service activator to display the Norway ship orders to the Console view
The service activator class (ExampleServiceActivator has already been created for
you and is in the com.intertech.lab5 package). Feel free to open and explore this class if you
would like.
Add the service activator SI component and associated bean in the sicomponents.xml file. Take the message from the norwaySAChannel
INCOMPLETE, WILL DO IT LATER