You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by rguig saad <sr...@gmail.com> on 2010/10/17 20:19:48 UTC

Camel Routes Names

I've Used Camel Context Naming and found it very Useful .
Now I've seen that Routes has got inc names => "route1", "route2"....
My question: Is it possible to name routes ?

-----

Saad RGUIG
e-mail: srguig@systemix.fr
http://blog.systemix.fr
http://fr.linkedin.com/in/rguigsaad
-- 
View this message in context: http://camel.465427.n5.nabble.com/Camel-Routes-Names-tp3216492p3216492.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Routes Names

Posted by Claus Ibsen <cl...@gmail.com>.
On Sun, Oct 17, 2010 at 8:38 PM, Christian Müller
<ch...@gmail.com> wrote:
> Use routeId() as follwing:
>
> from("direct:start").routeId("myRoute")
> .to(mock:bar);
>

And in Spring XML you just do
<route id="foo">


> Cheers,
> Christian
>
> On Sun, Oct 17, 2010 at 8:19 PM, rguig saad <sr...@gmail.com> wrote:
>
>>
>> I've Used Camel Context Naming and found it very Useful .
>> Now I've seen that Routes has got inc names => "route1", "route2"....
>> My question: Is it possible to name routes ?
>>
>> -----
>>
>> Saad RGUIG
>> e-mail: srguig@systemix.fr
>> http://blog.systemix.fr
>> http://fr.linkedin.com/in/rguigsaad
>> --
>> View this message in context:
>> http://camel.465427.n5.nabble.com/Camel-Routes-Names-tp3216492p3216492.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Re: Camel Routes Names

Posted by Christian Müller <ch...@gmail.com>.
Use routeId() as follwing:

from("direct:start").routeId("myRoute")
.to(mock:bar);

Cheers,
Christian

On Sun, Oct 17, 2010 at 8:19 PM, rguig saad <sr...@gmail.com> wrote:

>
> I've Used Camel Context Naming and found it very Useful .
> Now I've seen that Routes has got inc names => "route1", "route2"....
> My question: Is it possible to name routes ?
>
> -----
>
> Saad RGUIG
> e-mail: srguig@systemix.fr
> http://blog.systemix.fr
> http://fr.linkedin.com/in/rguigsaad
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-Routes-Names-tp3216492p3216492.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>