camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hadrian Zbarcea <hzbar...@gmail.com>
Subject Re: Is there a pipeline example with src in camel?
Date Thu, 02 Jun 2011 02:44:51 GMT
The source for what? Here are a few useful links:

http://camel.apache.org/maven/current/camel-core/apidocs/
(check the o.a.c.model and o.a.c.processor packages for definitions and implementations of
EIPs)

http://camel.apache.org/contributing.html (useful stuff, including where to find the camel
source code)
http://svn.apache.org/repos/asf/camel/trunk

The configuration of the route is defined by the Camel DSL (with many flavors: java, xml,
scala, groovy...) using RouteBuilder(s). In the example you mentioned you can find it here
in the configure() method (which uses the java dsl):
http://svn.apache.org/repos/asf/camel/trunk/examples/camel-example-docs/src/main/java/org/apache/camel/example/docs/PipelineRoute.java

What may be confusing is that pipeline() is actually implicit in Camel because it's so common.
FWIW there are implicit apis, one is pipeline, the other one is end() which does not need
to be specified at the end of a block pattern if it coincides with the end of the route (but
I digress). So in that particular example, the following are equivalent (using the java dls):

from("seda:pipeline.in").to("seda:pipeline.out1", "seda:pipeline.out2", "seda:pipeline.out3");
from("seda:pipeline.in").pipeline("seda:pipeline.out1", "seda:pipeline.out2", "seda:pipeline.out3");
from("seda:pipeline.in").pipeline().to("seda:pipeline.out1").to("seda:pipeline.out2").to("seda:pipeline.out3");
from("seda:pipeline.in").pipeline().to("seda:pipeline.out1").to("seda:pipeline.out2").to("seda:pipeline.out3").end();

I hope this helps,
Hadrian

On Jun 1, 2011, at 9:11 PM, ltomuno wrote:

> the official website
> http://camel.apache.org/pipes-and-filters.html
> where is the src?
> 
> 
> and the org.apache.camel.example.docs.PipelineRoute has no config
> where is the config file?
> 
> 
> camel 2.7.1


Mime
View raw message