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: Camel Properties Component Cache
Date Thu, 08 Mar 2012 12:33:33 GMT
Hi

I created a ticket to track this
https://issues.apache.org/jira/browse/CAMEL-5068

On Tue, Mar 6, 2012 at 9:11 AM, Claus Ibsen <claus.ibsen@gmail.com> wrote:
> On Mon, Mar 5, 2012 at 11:09 PM, ychawla <premiergeneration@yahoo.com> wrote:
>> Hello All,
>> The Camel Properties component is very cool, however there are a few
>> enhancements which would make it even better.
>>
>> First off the 'Cache' property is very nice.  If Cache is set to false, then
>> you can change your properties file and Camel will pick up the changes.  The
>> default on this is true and you can't update it under the CamelContext:
>>
>> <camelContext ...>
>>   <propertyPlaceholder id="properties"
>> location="com/mycompany/myprop.properties"/>
>> </camelContext>
>>
>> You can however update it by manually configuring the Spring Bean:
>>
>>        <bean id="properties"
>> class="org.apache.camel.component.properties.PropertiesComponent">
>>            <property name="location" value="file:endpoint.properties"/>
>>            <property name="cache" value="false"/>
>>        </bean>
>>
>> When doing this configuration on the Spring bean, it won't let you use the
>> properties in the simple language:
>>
>> <log message="${properties:cheese.quote}"/>
>>
>> It would be great if 'cache' would be an attribute on 'propertyPlaceholder'.
>>
>
> Good idea.
>
> Please create a JIRA ticket. And patches is of course welcome.
> http://camel.apache.org/support
> http://camel.apache.org/contributing.html
>
>
>
>> Thanks,
>> Yogesh
>>
>> --
>> View this message in context: http://camel.465427.n5.nabble.com/Camel-Properties-Component-Cache-tp5539115p5539115.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/



-- 
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