Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 40179 invoked from network); 22 Sep 2010 20:42:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Sep 2010 20:42:12 -0000 Received: (qmail 31641 invoked by uid 500); 22 Sep 2010 20:42:12 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 31566 invoked by uid 500); 22 Sep 2010 20:42:12 -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 31558 invoked by uid 99); 22 Sep 2010 20:42:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Sep 2010 20:42:12 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of david.yang@coverago.com designates 209.85.216.180 as permitted sender) Received: from [209.85.216.180] (HELO mail-qy0-f180.google.com) (209.85.216.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Sep 2010 20:42:04 +0000 Received: by qyk5 with SMTP id 5so1264100qyk.11 for ; Wed, 22 Sep 2010 13:41:42 -0700 (PDT) Received: by 10.224.112.209 with SMTP id x17mr513322qap.304.1285188102501; Wed, 22 Sep 2010 13:41:42 -0700 (PDT) Received: from [10.0.1.32] ([38.125.92.50]) by mx.google.com with ESMTPS id r38sm10695473qcs.38.2010.09.22.13.41.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 22 Sep 2010 13:41:42 -0700 (PDT) From: David Yang Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Managing configuration in components, routes, projects Date: Wed, 22 Sep 2010 16:41:38 -0400 Message-Id: <9BBE4904-B088-4502-9F15-BA487846F67F@coverago.com> To: users@camel.apache.org Mime-Version: 1.0 (Apple Message framework v1081) X-Mailer: Apple Mail (2.1081) I'm curious how others are solving the problem of managing configuration = across various routes, components etc inside a Camel Context. We've written some Components that themselves need to have connections = to various DB's etc. If we want to have a development and production = properties for each one of those (so that they can be individually = run/tested) but then use those Components in separate Route projects and = a master CamelContext, what would you recommend. They have other = dependencies as well (directory locations, file resources, application = binaries). Basically, if this is my world, where should I keep all the = configuration properties? Master Context - Route 1 - Comp A - Comp B - Route 2 - Comp A' (A with diff configuration) - Comp C I've thought about using JNDI, Jconfig or having some huge overwritable = map Singleton. Any thoughts/ideas? Would really like hearing how = others are solving this. David =09=