Skip to content

Instantly share code, notes, and snippets.

@vackosar
Last active August 29, 2015 14:20
Show Gist options
  • Save vackosar/6e61da6fee69da68c8de to your computer and use it in GitHub Desktop.
Save vackosar/6e61da6fee69da68c8de to your computer and use it in GitHub Desktop.
SPRING INTEGRATION ROUTER SPEC SUBFLOW MAPPING VS CHANNEL MAPPING

Spring integration RouterSpec functions subflowMapping VS channelMapping

I find it unintuitive that two seemingly similar functions subFlowMapping and channelMapping are very different. The difference is not mentioned in the Javadoc. Difference is described in release announcement.

Quote

The channelMapping() continues to work as in regular Router mapping, but the subFlowMapping() tied that subflow with main flow. In other words, any router’s subflow returns to the main flow after .route().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment