camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Propertyplaceholder location
Date Fri, 16 Sep 2011 15:16:36 GMT
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 file otherwise use
> file. How can i dynamically/programmatically change this
> location?
> <propertyPlaceholder id="properties" 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:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Twitter: davsclaus, fusenews
Author of Camel in Action:

View raw message