You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "valerian.merkling" <va...@capgemini.com> on 2013/04/17 17:21:06 UTC
Camel Properties override
Hi !
Just a quick question about properties.
If I define two property files like this :
<bean id="properties"
class="org.apache.camel.component.properties.PropertiesComponent">
<property name="locations">
<list>
<value>classpath:test1.properties</value>
<value>file:${karaf.home}/etc/test2.properties</value>
</list>
</property>
</bean>
And test1 and test2 both define the /foo/property, am I sure that I will
always have the value defined in test2 ?
I made a few test, and it seems that it is ok, but i need to be sure.
Best regards,
Valerian Merkling
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-Properties-override-tp5731025.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel Properties override
Posted by Willem jiang <wi...@gmail.com>.
Hi,
I just checked the code of Camel Properties component, the last one will override the first one value.
--
Willem Jiang
Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem
On Wednesday, April 17, 2013 at 11:21 PM, valerian.merkling wrote:
> Hi !
>
> Just a quick question about properties.
>
> If I define two property files like this :
>
> <bean id="properties"
> class="org.apache.camel.component.properties.PropertiesComponent">
> <property name="locations">
> <list>
> <value>classpath:test1.properties</value>
> <value>file:${karaf.home}/etc/test2.properties</value>
> </list>
> </property>
> </bean>
>
> And test1 and test2 both define the /foo/property, am I sure that I will
> always have the value defined in test2 ?
>
> I made a few test, and it seems that it is ok, but i need to be sure.
>
> Best regards,
>
> Valerian Merkling
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-Properties-override-tp5731025.html
> Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).