I want to conditionally split a List if exxchange is a List and continue processing

谁都会走 提交于 2019-12-07 15:18:33

Currently the way camel's split component is setup only the code underneath a list will process as individual records. Once you close the split block you are back to a single exchange. The only way to break that up would be to leverage a mid point like a direct endpoint. If you want to break up the logic you can always create separate route builder classes. The other option is to request a feature on the forums.

Use the aggregation strategy on the splitter to build the output you want from the splitter. There you can store the splitted sub message you want, instead of the original message that the splitter uses today.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!