yep

Romain Manni-Bucau
@rmannibucau |  Blog | Github | LinkedIn | Tomitriber


2015-11-20 8:20 GMT-08:00 Steve Goldsmith <[email protected]>:
> So, if I use the same cache name in createCache as in ccf it will pick up
> the ccf configuration for that cache?
>
> On Fri, Nov 20, 2015 at 11:02 AM, Romain Manni-Bucau <[email protected]>
> wrote:
>
>> JCache sees caches you create through JCache so yes createCache().
>> createCache will respect ccf if it is the question.
>>
>> Romain Manni-Bucau
>> @rmannibucau |  Blog | Github | LinkedIn | Tomitriber
>>
>>
>> 2015-11-20 7:43 GMT-08:00 sgjava <[email protected]>:
>> > I have Ehcache 3 working fine with JCache after adding
>> CacheResolverFactory,
>> > so beans and unit tests use the same cache. I'm testing JCS now and I'm
>> > running into the issue where the configuration file doesn't create caches
>> > visible to CacheManager. I know this isn't in the spec, but I want to do
>> > things in a generic way. Thus, should I use CacheManager.createCache?
>> Also,
>> > how do I get CacheManager to use caches created with ccf configuration
>> file?
>> >
>> > cacheManager = cachingProvider.getCacheManager(new
>> > File("src/config/jcache.ccf").toURI(), CacheBean.class.getClassLoader());
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> http://tomee-openejb.979440.n4.nabble.com/JCache-cache-visible-to-cache-manager-with-JCS-provider-tp4676924.html
>> > Sent from the TomEE Users mailing list archive at Nabble.com.
>>
>
>
>
> --
> Steven P. Goldsmith

Reply via email to