25.5.13

How To Implements Steps in Spring Integration?

Spring Integration is based on Message Driven Architecture. You have to drive everything along using messages. If some Message Endpoints, such as ServiceActivator, or Gateway, return void, the messaging flow will be interrupted.

However, what if I have multiple Service Activator needs to be driven one by one synchronously? That's a very simple requirement in any programming language, but I don't find an easy way to make it work in Spring Integration. You must have a message to drive the next Endpoint, as it is named.

Finally, I found out that I could use <int:request-handler-advice-chain> to make it work.

7.7 Adding Behavior to Endpoints

My Example Code





No comments: