camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Propertyplaceholder location
Date Fri, 16 Sep 2011 15:16:36 GMT
On Fri, Sep 16, 2011 at 3:59 PM, jdpatil <jaya.patil@mclaneco.com> 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?
> <propertyPlaceholder id="properties" location="proddir.property" />
>

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/

Mime
View raw message