简体   繁体   English

如何在Apache Camel中创建多个并发送多个交换

[英]How to create multiple & send multiple exchanges in Apache Camel

I have a situation in which I am generating a list of tasks in my camel producer then I need to send multiple exchanges containing each of these single task so that next component can process it. 我有一种情况,我在我的骆驼制作人生成一个任务列表,然后我需要发送包含这些单个任务的多个交换,以便下一个组件可以处理它。

Is there any pattern or producer in Camel which can serve my purpose. Camel中是否有任何模式或制作人可以满足我的目的。

I know there is DefaultTemplateProducer but my next part in route is processor which doesnot have an endpoint to point to so its of no use to me. 我知道有DefaultTemplateProducer,但我的下一个路由部分是处理器,它没有指向端点,所以它对我没用。

You could perhaps use the slitter pattern to split the list and send it down the route? 您也许可以使用分切器模式拆分列表并将其发送到路线中?

Apache Camel Splitter Apache Camel Splitter

Its a bit unclear what you want. 它有点不清楚你想要什么。 Maybe explain your question in more details. 也许更详细地解释一下你的问题。 Also make sure to understand and read about the Enterprise Integration Patterns that Camel offers: http://camel.apache.org/eip 另外,请务必了解并阅读Camel提供的企业集成模式: http//camel.apache.org/eip

And as U2one says, the splitter pattern may be a good start accordingly to your question. 正如U2one所说,分离器模式可能是您的问题的一个良好开端。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM