Cdi part of jcache is pretty stable in term of impl AFAIK. Le 20 août 2015 07:45, "Alten, Jessica-Aileen" < [email protected]> a écrit :
> > I also looked at http://www.knitelius.com/2015/06/29/using-jcache-in- > > jee-67 > > which I was unable to get the annotations working or at least see the > > values in the cache using cache.get after a @CacheResult. I can get > > JCache working fine without the annotations, but CDI is the route I > > want to go. So my question is do I wait for things to stabilize > > (remember this is for > > production) or is there a JCache CDI solution that works now that I can > > feel confident that when included in Java EE 8 I will not have to > > change any code. I'm in production with TomEE 2.0.0 and 7.0.0 and they > > are very stable. > > Perhaps you can give Infinispan a try? There is a nice and small example at > https://github.com/infinispan/infinispan-quickstart/tree/master/cdi > > The cheap trick (perhaps not only for Infinispan?) is to inject the > annotated object via CDI. > > Something I didn't mastered until now is the @Observes CDI annotation for > cache events in Infinispan. > > Greetings, > Jessica > > Btw. I'm using a vanilla Tomcat 8 with Weld CDI, Infinispan, Jersey > JAX-RS, and Eclipselink JPA. >
