Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
2.4.0
-
None
-
camel-cache 2.4.0-fuse-01-00
Description
I am using camel-cache component in serviceMix. Cache endpoint uri is
"cache://elements?maxElementsInMemory=2&memoryStoreEvictionPolicy=MemoryStoreEvictionPolicy.FIFO&overflowToDisk=false&eternal=false&timeToLiveSeconds=800"
I have 2 bundles (core.jar, services.jar). Inside those bundles I use
@EndpointInject(uri = Constants.CACHE_URI)
ProducerTemplate cacheTemplate;
cacheTemplate.requestBodyAndHeaders(...)
core.jar puts and reads elements from cache.
services.jar only reads elements from cache.
After deploying both bundles it works fine, but if i uninstall services.jar, cache is "destroyed". core.jar (and all others) can't put objects into cache anymore.
How could I make all bundles to "share" the same cache?