Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 31485 invoked from network); 14 Oct 2009 16:55:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Oct 2009 16:55:39 -0000 Received: (qmail 38531 invoked by uid 500); 14 Oct 2009 16:55:39 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 38491 invoked by uid 500); 14 Oct 2009 16:55:38 -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 38481 invoked by uid 99); 14 Oct 2009 16:55:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Oct 2009 16:55:38 +0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=SPF_HELO_PASS,SPF_PASS,URI_NOVOWEL 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; Wed, 14 Oct 2009 16:55:29 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1My780-0002He-8n for users@camel.apache.org; Wed, 14 Oct 2009 09:55:08 -0700 Message-ID: <25894947.post@talk.nabble.com> Date: Wed, 14 Oct 2009 09:55:08 -0700 (PDT) From: terminator_007 To: users@camel.apache.org Subject: reading endpoints from a properties file MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: ankita_sonal@intuit.com X-Virus-Checked: Checked by ClamAV on apache.org my application would have different property file for different environments. For example camel-staging.properties,camel-dev.properties,camel-integration.properties. All these files would have endpoints defined in them for the respective environment. This is a sample properties file serviceOne=http://YYYYYYYYYY:8080/serviceone/subscriber serviceTwo=http://ZZZZZZZZZZ:8080/servicetwo/subscriber How can I refer to these properties in my camel configuration file. here is my camel configuration file. I plan to get the uri for serviceone,servicetwo from the properties file. serviceOne serviceTwo -- View this message in context: http://www.nabble.com/reading-endpoints-from-a-properties-file-tp25894947p25894947.html Sent from the Camel - Users mailing list archive at Nabble.com.