-
Type:
Improvement
-
Status: Resolved
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: camel-cache
-
Labels:
-
Estimated Complexity:Unknown
There should be a way to configure camel-cache with properties file using DefaultPropertiesResolver#loadPropertiesFromClasspath. So the route might look like this:
from("cache://myCache?configurationFile=classpath:com/foo/mycache.properties")...
instead of
from("cache://MyApplicationCache" + "?maxElementsInMemory=1000" + "&memoryStoreEvictionPolicy=" + "MemoryStoreEvictionPolicy.LFU" + "&overflowToDisk=true" + "&eternal=true" + "&timeToLiveSeconds=300" + "&timeToIdleSeconds=true" + "&diskPersistent=true" + "&diskExpiryThreadIntervalSeconds=300")
This improvement was added due to Henryk Konsek request.