On Mar 27, 2008, at 1:32 PM, raulvk wrote:
However, I have noticed that the Pipeline pattern is only available
from
Java DSL, as the element is not defined in the Camel XSD located at:
http://activemq.apache.org/camel/schema/spring/camel-spring.xsd.
As I understand it, pipelines are implicitly created when specifying
routes via XML. The following should be equivalent to the example
found at http://activemq.apache.org/camel/pipes-and-filters.html
<route>
<from uri="direct:a"/>
<to uri="direct:x"/>
<to uri="direct:y"/>
<to uri="direct:z"/>
<to uri="mock:result"/>
</route>
You have to explicitly specify multicast if this isn't the behavior
you want. I think it would look like this?
<route>
<from uri="direct:a"/>
<multicast>
<to uri="direct:x"/>
<to uri="direct:y"/>
<to uri="direct:z"/>
<to uri="mock:result"/>
</multicast>
</route>
If you turn on DEBUG level logging when running Camel's unit tests or
examples, you'll see a lot of information about what routing
constructs are used under the hood.
Hope this helps!
- aaron