[
https://issues.apache.org/jira/browse/CAMEL-6203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13612145#comment-13612145
]
Henryk Konsek commented on CAMEL-6203:
--------------------------------------
You can recognize the type of configuration using the file extension.
> Cache configuration using properties file
> -----------------------------------------
>
> Key: CAMEL-6203
> URL: https://issues.apache.org/jira/browse/CAMEL-6203
> Project: Camel
> Issue Type: Improvement
> Components: camel-cache
> Reporter: Piotr Klimczak
> Labels: camel-cache, ehcache, properties
>
> There should be a way to configure camel-cache with properties file using
> DefaultPropertiesResolver#loadPropertiesFromClasspath. So the route might
> look like this:
> {code}
> from("cache://myCache?configurationFile=classpath:com/foo/mycache.properties")...
> {code}
> instead of
> {code}
> from("cache://MyApplicationCache" +
> "?maxElementsInMemory=1000" +
> "&memoryStoreEvictionPolicy=" +
> "MemoryStoreEvictionPolicy.LFU" +
> "&overflowToDisk=true" +
> "&eternal=true" +
> "&timeToLiveSeconds=300" +
> "&timeToIdleSeconds=true" +
> "&diskPersistent=true" +
> "&diskExpiryThreadIntervalSeconds=300")
> {code}
> This improvement was added due to Henryk Konsek request.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira