7

Been googling for a long time and can't seen to find any information on this.

I'm not 100% sure if it is part of the Java EE platform but my gut feeling it is not. Although, it seems most Java EE compliant application containers do use/ or allow usage of caching systems.

Is it part of Java SE?

Or is it just a standalone specification?

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
SoftwareDeveloper
  • 1,094
  • 2
  • 15
  • 26
  • 4
    https://dzone.com/articles/introduction-jcache-jsr-107: "JCache support is required for Java EE 7.". 1 minute ... – Marged Oct 22 '15 at 10:28
  • 1
    according to this link it seems not be a official part of JEE 7 http://www.oracle.com/technetwork/java/javaee/tech/index.html – salyh Oct 22 '15 at 10:49

2 Answers2

8

Is the JCache API (JSR 107) part of Java EE?

The short answer is no.


The Java Temporary Caching API (javax.cache package) is not included in the Java EE 7 API dependency:

<dependency>
    <groupId>javax</groupId>
    <artifactId>javaee-api</artifactId>
    <version>7.0</version>
</dependency>

If you need the Java Temporary Caching API, you need another dependency:

<dependency>
    <groupId>javax.cache</groupId>
    <artifactId>cache-api</artifactId>
    <version>1.0.0</version>
</dependency>

In a similar way, the JSR 107 is not included in the Java EE 7 technologies list.

And Java Temporary Caching API final version announcement mentions the following:

It should be possible to use it as a drop-in addition to a Java EE 6 or Java EE 7 application. Although JCache does not specifically address Java EE integration most common use cases should be supported, including a pretty cool set of caching annotations that work with CDI.


The Java Temporary Caching API is not part of the Java EE 8 technologies either.

cassiomolin
  • 124,154
  • 35
  • 280
  • 359
2

According to Oracle it is needed for Java EE and needs to be in the Web Profile:

https://blogs.oracle.com/arungupta/entry/java_ee_7_key_features

Arjan Tijms
  • 37,782
  • 12
  • 108
  • 140
Marged
  • 10,577
  • 10
  • 57
  • 99
  • 1
    That links mentions "possible inclusion" of JCache; however it's not listed on Oracle's list of Java EE 7 technologies at http://www.oracle.com/technetwork/java/javaee/tech/index.html. – GargantuChet Jan 06 '17 at 00:15