Anyone had any luck using the new JCache APIs? Which provider implementation are you using?
The publicly available version of ehcache-jcache:1.5.0-0.5 is severely out of date. I’m running into the following issue when using EventCountSnapshotterTrigger (as well as my own custom EventStreamDecorators) that rely on registering a CacheListener.
Also, Spring 4 depends on cache-api:1.0.0-RC1, while Axon depends on 0.5. The APIs have changed quite a lot. Aside from the above blocker, I can’t use Spring 4’s JCacheManagerFactoryBean with the older cache-api due to NoSuchMethodErrors. Conversely, using cache-api:1.0.0-RC1 satisfies Spring but breaks Axon.
Ehcache has been brewing a new release of ehcache.jcache:1.0.0-SNAPSHOT (artifact ID changed so yes, “older” version is actually newer). This supposedly fixes the above issue but will use cache-api:1.0.0-RC1+, which will break Axon.
So Axon 2.1+Ehcache+Spring 4 is a no-win situation. All worked fine with Axon 2.0 and an older Ehcache.
Was switching to JSR 107 premature? Are there any providers still supporting cache-api:0.5?