我希望更好地理解流行的 EIP 分散集合中的多个拆分器、转换器和聚合方法。
用例是我发送一些可以对应于多种不同类型的 XML。我想拆分标题中指定的类型(每种类型不同)并通过与每种类型对应的特定转换器运行它。
Camel 内部有什么好的例子可以做这样的事情吗?
伪代码理念
RouteBuilder to process the input XML
Split on the type
Dynamically redirect to proper splitter based on type
Dynamically redirect to proper transformer based on type
Aggregate
Return response