Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 94793 invoked from network); 11 Dec 2008 00:08:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Dec 2008 00:08:41 -0000 Received: (qmail 66605 invoked by uid 500); 11 Dec 2008 00:08:53 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 66585 invoked by uid 500); 11 Dec 2008 00:08:53 -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 66574 invoked by uid 99); 11 Dec 2008 00:08:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Dec 2008 16:08:53 -0800 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 (nike.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; Thu, 11 Dec 2008 00:08:39 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LAZ6I-00087b-6M for camel-user@activemq.apache.org; Wed, 10 Dec 2008 16:08:18 -0800 Message-ID: <20946948.post@talk.nabble.com> Date: Wed, 10 Dec 2008 16:08:18 -0800 (PST) From: dougly To: camel-user@activemq.apache.org Subject: Configure Route in Spring Context MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: dmly.usa@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org Hi riders, I have a couple of properties in my RouteBuilder class that needed to be initialized using Spring application context file. public class MailRouteBuilder extends RouteBuilder { private static MailConfigure mailConfig; private static IEmailMessageProcessor messageProcessor; ... } then in my Spring context file I have this com.lyfam.component.mail Spring will try to create 2 instances of this MailRouteBuilder: one in the camel context initialization and the other for the bean "mailRoute". Obviously, this is not what I want. Can I reuse/instruct camelContext to use the existing bean after it is configured. In this case I need the camel context to use my "mailRoute" bean. Thank you guys, Doug -- View this message in context: http://www.nabble.com/Configure-Route-in-Spring-Context-tp20946948s22882p20946948.html Sent from the Camel - Users mailing list archive at Nabble.com.