Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 53556 invoked from network); 16 Jul 2008 15:11:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jul 2008 15:11:18 -0000 Received: (qmail 8673 invoked by uid 500); 16 Jul 2008 15:11:18 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 8663 invoked by uid 500); 16 Jul 2008 15:11:18 -0000 Mailing-List: contact camel-user-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-user@activemq.apache.org Delivered-To: mailing list camel-user@activemq.apache.org Received: (qmail 8652 invoked by uid 99); 16 Jul 2008 15:11:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jul 2008 08:11:18 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jul 2008 15:10:23 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KJ8eU-0003sI-TZ for camel-user@activemq.apache.org; Wed, 16 Jul 2008 08:10:46 -0700 Message-ID: <18489666.post@talk.nabble.com> Date: Wed, 16 Jul 2008 08:10:46 -0700 (PDT) From: cmoulliard To: camel-user@activemq.apache.org Subject: Is it possible to inject a bean in a class which extends a org.apache.camel.builder.RouteBuilder ? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: cmoulliard@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org Hi, I try to inject a bean in a class which extends a org.apache.camel.builder.RouteBuilder without success. So my question is simple, is it possible ? e.g. 1) MyRouterBuilder class wher I want to inject a bean (= EndPoint bean) MyRouterBuilder class { private EndPointName endpointName = null; @Override public void configure() { // endpoint that I would like to inject from(EndPoints.FileClientIn) .to(""); } // Inject endpoints dependency through Spring into my RouteBuilder class public void setEndpointName(EndPointName endpointName) { this.endpointName = endpointName; } } 2) Camel context file where the endPoint bean is declared Regards, Charles Moulliard ----- Enterprise Architect Xpectis 12, route d'Esch L-1470 Luxembourg Phone +352 25 10 70 470 Mobile +352 621 45 36 22 e-mail : cmoulliard@xpectis.com web site : www.xpectis.com -- View this message in context: http://www.nabble.com/Is-it-possible-to-inject-a-bean-in-a-class-which-extends-a-org.apache.camel.builder.RouteBuilder---tp18489666s22882p18489666.html Sent from the Camel - Users mailing list archive at Nabble.com.