Piotr Klimczak created CAMEL-6203:
-------------------------------------

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


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

Reply via email to