camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdpatil <>
Subject RE: Propertyplaceholder location
Date Mon, 19 Sep 2011 14:21:32 GMT
But how can I use that system property to change the location dynamically. I think in camel
2.7 we can specify the system property but  I am using 2.5.
Thank you.

From: Claus Ibsen-2 [via Camel] []
Sent: Friday, September 16, 2011 10:18 AM
To: Jaya Patil
Subject: Re: Propertyplaceholder location

On Fri, Sep 16, 2011 at 3:59 PM, jdpatil <[hidden email]</user/SendEmail.jtp?type=node&node=4811025&i=0>>
> 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
Email: [hidden email]</user/SendEmail.jtp?type=node&node=4811025&i=1>
Twitter: davsclaus, fusenews
Author of Camel in Action:

If you reply to this email, your message will be added to the discussion below:
To unsubscribe from Propertyplaceholder location, click here<>.

View this message in context:
Sent from the Camel - Users mailing list archive at
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message