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 D381ED4B5 for ; Mon, 24 Sep 2012 07:50:24 +0000 (UTC) Received: (qmail 59786 invoked by uid 500); 24 Sep 2012 07:50:24 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 59350 invoked by uid 500); 24 Sep 2012 07:50:23 -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 59308 invoked by uid 99); 24 Sep 2012 07:50:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2012 07:50:21 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.217.173 as permitted sender) Received: from [209.85.217.173] (HELO mail-lb0-f173.google.com) (209.85.217.173) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2012 07:50:16 +0000 Received: by lbbgm13 with SMTP id gm13so7816331lbb.32 for ; Mon, 24 Sep 2012 00:49:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=gVbuprDVHGlhwk8IuNk8zzAKHXljREFXCniIgyO7xk0=; b=exmM6OuJtMp2kSmCLSi1/DVEC6n/dwzRzksUXHOGr7GlciTt23zj4od8DB7nGbT/2J GAI0dfJaJumRZCmbnn73RpYdoLUPm2s7A8gply5CzMfkLH+sRJ90+DabiVTMiGCQg57t ngmwP/COKZyTuzWzabHNx5rxUB/gDkanDtkDo7NtPd4O5ikO55wUY/quRTsuOLCtfsy2 7aZMvvDT5bX9AlmiyXeUXCWXKRN88ChgCEHIyZmvD+1luAYiCtbF4se3mwA4Mk9tWduE wkU/b135XzpihecfHdvG5i1TW8D9UOc+oZZW+MEAoEe08kQkKt3/Sczz5UjCCW0BJPPz czRQ== Received: by 10.112.24.196 with SMTP id w4mr3890485lbf.37.1348472995977; Mon, 24 Sep 2012 00:49:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.7.230 with HTTP; Mon, 24 Sep 2012 00:49:34 -0700 (PDT) In-Reply-To: <1348451013762-5719818.post@n5.nabble.com> References: <1348221034371-5719716.post@n5.nabble.com> <1348451013762-5719818.post@n5.nabble.com> From: Claus Ibsen Date: Mon, 24 Sep 2012 09:49:34 +0200 Message-ID: Subject: Re: Correct use of camelproxy? To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 On Mon, Sep 24, 2012 at 3:43 AM, zuff wrote: > Hi All, > > I managed to get the route to work. However, I did this by annotating > @Produce(uri="direct:resultProcessor") on the resultProcessor instance > variable in the controller class. Is it possible to decouple camel from the > code, and just use the camelContext.xml for configuration? > Yes it can be all done in the XML file only. You would need though in the XML to setup IoC for the proxy by its id, eg where you need to use it, you need to inject the bean by id "resultProxy". eg standard spring bean IoC stuff. > Thanks and Best Regards, > Zuff > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Correct-use-of-camelproxy-tp5719716p5719818.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cibsen@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen