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

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.

Reply via email to