Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

JCache in Java EE 8: Status Update

DZone's Guide to

JCache in Java EE 8: Status Update

Learn all about using JCache in Java EE 8, with an overview of integration points, like managing caches, implementing JCache annotations, and Java EE specs.

· Java Zone
Free Resource

Build vs Buy a Data Quality Solution: Which is Best for You? Gain insights on a hybrid approach. Download white paper now!

The contents of this post are derived from conversations on the Java EE 8 mailing lists with regards to JCache integration. There are a couple of threads

Here are a bunch of points which seemed to have to come out of the discussions so far

JCache & Java EE 8 Integration Points

Managing Caches

CDI can be used to manage caches with the help of Producers. Containers can also provide portable CDI extensions to make the job a little easier and reduce boilerplate (see TomEE jcache-cdi)

Implementing JCache Annotations

JCache ships with annotations meant to be leveraged by DI containers. A Java EE implementation would need to provide support for these annotations which can also be achieved by CDI interceptors (possibly in the form of portable CDI extensions)

Examples:

Other Java EE Specs Leveraging JCache

Different Java EE 8 specs can make use of the presence of JCache standards and make use of its features. One of the most common examples would be JPA 2.2 using JCache provider as a (distributed) L2 (Level 2) cache. Payara has this lined up as well

Payara is leading the way with some other use cases in the pipeline

What’s the Bare Minimum?

As Johan Vos stated, just including it in the Java EE 8 Platform would be great!

I’ll stop rambling and open the floor for discussions, inputs and suggestions – over here, on the open Java EE 8 mailings lists or maybe in a blog post of your own ..?

Cheers!

Build vs Buy a Data Quality Solution: Which is Best for You? Maintaining high quality data is essential for operational efficiency, meaningful analytics and good long-term customer relationships. But, when dealing with multiple sources of data, data quality becomes complex, so you need to know when you should build a custom data quality tools effort over canned solutions. Download our whitepaper for more insights into a hybrid approach.

Topics:
java ,jcache ,java ee 8 ,java ee

Published at DZone with permission of Abhishek Gupta, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}