Вопрос

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.

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.

Это было полезно?

Решение

You could perhaps use the slitter pattern to split the list and send it down the route?

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

And as U2one says, the splitter pattern may be a good start accordingly to your question.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top