camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-5623) Cache-Component doesn't work with decorated Caches
Date Thu, 27 Sep 2012 08:22:07 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-5623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13464545#comment-13464545
] 

Claus Ibsen commented on CAMEL-5623:
------------------------------------

Timeframes for releases is discussed on the @dev mailinglis.

Looks like there is a recent snapshot here
https://repository.apache.org/content/repositories/snapshots/org/apache/camel/camel-cache/2.10.2-SNAPSHOT/
                
> Cache-Component doesn't work with decorated Caches
> --------------------------------------------------
>
>                 Key: CAMEL-5623
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5623
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-cache
>    Affects Versions: 2.10.1
>            Reporter: Reinhard Prechtl
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.11.0, 2.10.2
>
>         Attachments: camel-cache-5623.patch
>
>
> The camel-cache component uses cacheManager.getCache(cacheName) in org.apache.camel.component.cache.CacheEndpoint.initializeCache():114
> This method call does not return decorated caches.
> If you want to use a SelfPopulatingCache or a BlockingCache with EhCache and you call
cacheManager.replaceCacheWithDecoratedCache(oldCache, decoratedCache), then the CachedEndpoint
will return a <null> cache instead of the decorated cache. This happens because the
preceeding cacheManager.cacheExists(cacheName) check will not check if a cache is a decorated
cache.
> My suggestion is to replace the getCache() call with getEhcache() call, which will return
decorated caches as well.

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

Mime
View raw message