Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the asciidoc in the repository:

How do I write a custom Processor which sends multiple messages?

You could use a Splitter or use multiple Message Translator instances in your route.

Or you could write a custom processor which is injected with a ProducerTemplate instance that just generates N messages...

Then the ProducerTemplate can be injected - configured in spring.xml with its default URI

Note that the default output URI is inherited from the <template/> configuration. If you prefer you could specify that in the producer.send() method call

© 2004-2015 The Apache Software Foundation.
Apache Camel, Camel, Apache, the Apache feather logo, and the Apache Camel project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
Graphic Design By Hiram