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 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 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 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 > thing? > >> > >> Thanks, > >> > >> Lance > >> _________________ > >> > >> http://www.stateofflow.com > >> http://www.casualmiracles.com > >> http://www.twitter.com/lancewalton > >> +44 (0)7779 026533 > >> > >> > > > > > > -- > > Cheers, > > Jon > > --------------- > > FuseSource > > Email: j...@fusesource.com > > Web: fusesource.com > > Twitter: jon_anstey > > Blog: http://janstey.blogspot.com > > Author of Camel in Action: http://manning.com/ibsen > -- Cheers, Jon --------------- FuseSource Email: j...@fusesource.com Web: fusesource.com Twitter: jon_anstey Blog: http://janstey.blogspot.com Author of Camel in Action: http://manning.com/ibsen