Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 709829901 for ; Mon, 30 Jul 2012 16:55:26 +0000 (UTC) Received: (qmail 2496 invoked by uid 500); 30 Jul 2012 16:55:26 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 2467 invoked by uid 500); 30 Jul 2012 16:55:26 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 2458 invoked by uid 99); 30 Jul 2012 16:55:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jul 2012 16:55:25 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lancewalton@mac.com designates 17.172.204.240 as permitted sender) Received: from [17.172.204.240] (HELO st11p01mm-asmtpout005.mac.com) (17.172.204.240) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jul 2012 16:55:19 +0000 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from [192.168.1.75] (87-194-207-209.bethere.co.uk [87.194.207.209]) by st11p01mm-asmtp005.mac.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Jan 3 2012)) with ESMTPSA id <0M7Z00I2NGBJL9A0@st11p01mm-asmtp005.mac.com> for users@camel.apache.org; Mon, 30 Jul 2012 16:54:58 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.7.7855,1.0.260,0.0.0000 definitions=2012-07-30_03:2012-07-30,2012-07-30,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1203120001 definitions=main-1207300168 Subject: Re: Scala DSL - How do I give a route an id? References: From: Lance Walton X-Mailer: iPhone Mail (9B206) In-reply-to: Message-id: <6BD57DA0-D982-4A9C-B10D-4D3F05F34348@mac.com> Date: Mon, 30 Jul 2012 17:55:06 +0100 To: "users@camel.apache.org" 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 wrote: > Did you try using routeId? > > from("direct:start") > .routeId("foo") > ... > > On Mon, Jul 30, 2012 at 1:59 PM, Lance Walton 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: jon@fusesource.com > Web: fusesource.com > Twitter: jon_anstey > Blog: http://janstey.blogspot.com > Author of Camel in Action: http://manning.com/ibsen