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 5E8337D6D for ; Fri, 16 Sep 2011 15:17:22 +0000 (UTC) Received: (qmail 51829 invoked by uid 500); 16 Sep 2011 15:17:22 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 51795 invoked by uid 500); 16 Sep 2011 15:17:22 -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 51787 invoked by uid 99); 16 Sep 2011 15:17:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Sep 2011 15:17:22 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.215.51 as permitted sender) Received: from [209.85.215.51] (HELO mail-ew0-f51.google.com) (209.85.215.51) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Sep 2011 15:17:17 +0000 Received: by ewy6 with SMTP id 6so2415927ewy.24 for ; Fri, 16 Sep 2011 08:16:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=cxpJObPSdp52mL9uHWaJJr37V4GVKtMi9IBfm8jOgc8=; b=sbwW+S+jLvQk8HOrTInCA7LhI5A+IB0V5KUEAAp04xTHxyAA/8f1NYgwgeabFtrP7a EJBVxmOQLF7mXsww859FybcJS5McHL10qH4X+L2z7DGrVgYs3nuNs7XiQGsMGOXTWtzK GlIOFzzaE8pSVt2T4yXE1HmQoQHNHyqCZ1+Mk= Received: by 10.213.10.18 with SMTP id n18mr244680ebn.124.1316186216312; Fri, 16 Sep 2011 08:16:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.15.84 with HTTP; Fri, 16 Sep 2011 08:16:36 -0700 (PDT) In-Reply-To: <1316181598558-4810780.post@n5.nabble.com> References: <1316181598558-4810780.post@n5.nabble.com> From: Claus Ibsen Date: Fri, 16 Sep 2011 17:16:36 +0200 Message-ID: Subject: Re: Propertyplaceholder location To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 On Fri, Sep 16, 2011 at 3:59 PM, jdpatil wrote: > I have one sysytem property (isProduction)which tells if the server is test > server or production server. > In my applicationContext.xml i have define propetryplaceholder and need to > change the location according to the system property. If the system propetry > isProduction=true then use proddir.property file otherwise use > testdir.property file. How can i dynamically/programmatically change this > location? > > You can set another system property with the location of the file instead. So instead of having a true|false, you can have a value of the actual location. > -- > View this message in context: http://camel.465427.n5.nabble.com/Propertyplaceholder-location-tp4810780p4810780.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: cibsen@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/