You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Piotr Klimczak (JIRA)" <ji...@apache.org> on 2013/03/24 08:35:15 UTC

[jira] [Created] (CAMEL-6203) Cache configuration using properties file

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