On Fri, Sep 16, 2011 at 3:59 PM, jdpatil <[email protected]> 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: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
