On Mon, Mar 5, 2012 at 11:09 PM, ychawla <premiergenerat...@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: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to