I commented out Ehcache and added to
https://github.com/sgjava/jcache-tomee/blob/master/pom.xml:

        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-jcs-jcache</artifactId>
            <version>2.0-SNAPSHOT</version>
        </dependency>

And the test works until:

            // Let's try looking up by key
            final StringGeneratedCacheKey key = new StringGeneratedCacheKey(
                    "key1");
            final String value = testCache.get(key);
            assertNotNull(value); // Fails

But I can get all the values in the cache:

INFO: Map of cache: {key1=value1, key2=value2, key3=value3}

I'm not using any configuration file. but obviously I can access testCache
via Iterator.







--
View this message in context: 
http://tomee-openejb.979440.n4.nabble.com/JCS-and-JCache-tp4676070.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to