Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 95059 invoked from network); 15 Mar 2010 08:39:44 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Mar 2010 08:39:44 -0000 Received: (qmail 36835 invoked by uid 500); 15 Mar 2010 08:38:58 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 36745 invoked by uid 500); 15 Mar 2010 08:38:57 -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 36736 invoked by uid 99); 15 Mar 2010 08:38:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Mar 2010 08:38:57 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.218.224 as permitted sender) Received: from [209.85.218.224] (HELO mail-bw0-f224.google.com) (209.85.218.224) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Mar 2010 08:38:52 +0000 Received: by bwz24 with SMTP id 24so3151810bwz.36 for ; Mon, 15 Mar 2010 01:38:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=X4PksWRBjhEegDJenbL8AchOwf3OPRZnF1AsbOepmmA=; b=Z2GRuGduczsJf2O+6ePflbgOHUbzb8SSLyjexnHtiweG2gPc++LgVMlPFEaMm36hxf Co7p588T8v5R5sNqcimw4PaN4L6NjeTEpkZ5JqKnVmMUTWmbl2UOcxAEGXh42ivOmyvg 3AeopP8bZsHw+nz+mJ9lHU+gnDA8Oz1w+euNE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=uL8BVH6m+/vTtZ5ZZMgAURqBEuQ8Cs5CklXnOstqXat72HEcmtIC1GWYuyY31N/hID kEYo8h5l/2FDbZ2L0AWRR1tUUFfOvgT7JywkZ7JOQcu5P+W8zs800LnV0kWi+Suxhtoe dCXvYtxTkK2pwME067DuViyTQQk7d8lTuCVsQ= MIME-Version: 1.0 Received: by 10.204.14.86 with SMTP id f22mr7104234bka.107.1268642311653; Mon, 15 Mar 2010 01:38:31 -0700 (PDT) In-Reply-To: <27901495.post@talk.nabble.com> References: <27901495.post@talk.nabble.com> From: Claus Ibsen Date: Mon, 15 Mar 2010 09:38:11 +0100 Message-ID: <5380c69c1003150138u4563c40fkc0f1cfda9ba80562@mail.gmail.com> Subject: Re: Why isn't it possible to create a route from a endpoint id? To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Use the ref component http://camel.apache.org/ref from("ref:myRouteStart").process().to("ref:myRouteEnd"); On Mon, Mar 15, 2010 at 9:35 AM, Tarjei Huse wrote: > > Hi, > > if is possible to create a Route using from(Endpoint ep) or from("uri"), = but > I want to be able to register different endpoints in different situations > and let camel do the assigning for me. Is this possible? > > The reason I want to do this, is to be able to create tests for routes wh= ere > I do > > @EndpointInject("ref"=3D"myRouteStart", "uri"=3D"direct:start") > Endpoint ep; > > in the test and then have something like: > > class MyRoute extends RouteBuilder { > > =A0public void configure() throws Exception { > > =A0ref("myRouteStart").process().to("myRouteEnd"); > > } > > Is this possible or is the ref and the uri of an endpoint essentially the > same and thus cannot be used for abstraction? > > Regards, > Tarjei > > > -- > View this message in context: http://old.nabble.com/Why-isn%27t-it-possib= le-to-create-a-route-from-a-endpoint-id--tp27901495p27901495.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > --=20 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