Re: Scala DSL - How do I give a route an id

2012-08-13 Thread Claus Ibsen
On Mon, Jul 30, 2012 at 6:25 PM, Lance Walton lancewal...@mac.com wrote: Hi. I'm using the Scala DSL to add routes to the CamelContext. However, I also want to be able to remove some of these routes from the CamelContext later. I can see how to do this if I have a route id, but I can't see

Re: Scala DSL - How do I give a route an id?

2012-07-31 Thread Henryk Konsek
Perfect. Thanks for the excellent and speedy response. This kind of knowledge shouldn't be spread only by the word of mouth. :) I've updated the wiki [1]. [1] https://cwiki.apache.org/confluence/display/CAMEL/Scala+DSL+-+Getting+Started -- Henryk Konsek http://henryk-konsek.blogspot.com

Scala DSL - How do I give a route an id?

2012-07-30 Thread Lance Walton
Hi. I'm using the Scala DSL to add routes to the CamelContext. However, I also want to be able to remove some of these routes from the CamelContext later. I can see how to do this if I have a route id, but I can't see how to assign an id to a route in the DSL. Can anyone point me at the right

Scala DSL - How do I give a route an id

2012-07-30 Thread Lance Walton
Hi. I'm using the Scala DSL to add routes to the CamelContext. However, I also want to be able to remove some of these routes from the CamelContext later. I can see how to do this if I have a route id, but I can't see how to assign an id to a route in the DSL. Can anyone point me at the right

Re: Scala DSL - How do I give a route an id

2012-07-30 Thread Lance Walton
Apologies for the double post. _ http://www.stateofflow.com http://www.casualmiracles.com http://www.twitter.com/lancewalton +44 (0)7779 026533 On 30 Jul 2012, at 17:25, Lance Walton wrote: Hi. I'm using the Scala DSL to add routes to the CamelContext. However, I also want

Re: Scala DSL - How do I give a route an id?

2012-07-30 Thread Jon Anstey
Did you try using routeId? from(direct:start) .routeId(foo) ... On Mon, Jul 30, 2012 at 1:59 PM, Lance Walton lancewal...@mac.com wrote: Hi. I'm using the Scala DSL to add routes to the CamelContext. However, I also want to be able to remove some of these routes from the

Re: Scala DSL - How do I give a route an id?

2012-07-30 Thread Lance Walton
Hi. Thanks for the reply. That looks Java DSL like. That's what I want to do but with the Scala DSL. Regards, Lance On 30 Jul 2012, at 17:46, Jon Anstey jans...@gmail.com wrote: Did you try using routeId? from(direct:start) .routeId(foo) ... On Mon, Jul 30, 2012 at

Re: Scala DSL - How do I give a route an id?

2012-07-30 Thread Jon Anstey
Here's an example http://svn.apache.org/repos/asf/camel/trunk/components/camel-scala/src/test/scala/org/apache/camel/scala/dsl/RouteIdTest.scala On Mon, Jul 30, 2012 at 2:25 PM, Lance Walton lancewal...@mac.com wrote: Hi. Thanks for the reply. That looks Java DSL like. That's what I want

Re: Scala DSL - How do I give a route an id?

2012-07-30 Thread Lance Walton
Perfect. Thanks for the excellent and speedy response. Regards, Lance On 30 Jul 2012, at 18:02, Jon Anstey jans...@gmail.com wrote: Here's an example http://svn.apache.org/repos/asf/camel/trunk/components/camel-scala/src/test/scala/org/apache/camel/scala/dsl/RouteIdTest.scala On Mon,