Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hantsy/ee8-sandbox

Java EE 8/Jakarta EE 8 sandbox
https://github.com/hantsy/ee8-sandbox

bean-validation cdi glassfish javaee8 jaxrs jpa jsf jsonb jsonp microprofile mvc security

Last synced: 3 months ago
JSON representation

Java EE 8/Jakarta EE 8 sandbox

Awesome Lists containing this project

README

        

# Java EE 8/Jakarta EE 8 Sandbox

Java EE is finally moved to the biggest Java community - Eclipse Foundation. It is great for Java developers. But due to some issues of Java EE brand, we have to use a new name to continue it. Jakarta EE is elected from Java communities.

## Migration to Jakarta EE 8

In our project, when migrating the existing project to Jakarta EE 8, use the following new Jakarta EE API instead in your Maven POM.

```xml

jakarta.platform
jakarta.jakartaee-api
${jakartaee-api.version}

```

Or Jakarta EE Web API if you are using *Web Profile* only.

```xml

jakarta.platform
jakarta.jakartaee-web-api
${jakartaee-api.version}

```
Define the propery *jakartaee-api.version* in *properties*.

```xml

8.0.0
```

Due to the historic reason, the existing classes and other resources in these jars still use *javax* as package prefix, it is good for backward compatibility. There is no need to change the codes at all.

But in future Jakarta EE 9 or x , it will use *jakarta* for newly-added APIs.

## What is new in Java EE 8

There tow new specifications were introduced in Java EE 8.

* JSR 375 – Java EE Security API 1.0
* JSR 367 – The Java API for JSON Binding (JSON-B) 1.0

Some specifications have been updated to align with Java 8 and CDI or involved as a maintainance release.

* JSR 365 – Contexts and Dependency Injection (CDI) 2.0
* JSR 369 – Java Servlet 4.0
* JSR 370 – Java API for RESTful Web Services (JAX-RS) 2.1
* JSR 372 – JavaServer Faces (JSF) 2.3
* JSR 374 – Java API for JSON Processing (JSON-P)1.1
* JSR 380 – Bean Validation 2.0
* JSR 250 – Common Annotations 1.3
* JSR 338 – Java Persistence 2.2
* JSR 356 – Java API for WebSocket 1.1
* JSR 919 – JavaMail 1.6

The other specifications such as JMS, Batch have no updates in this version.

Unfortunately, MVC(JSR 371) is vetoed in the final stage, but it is still existed as a community based specification. And JCache(JSR 107) which had missed the last train of Java EE 7, and also lost its attractiveness in Java EE 8.

## Understanding the Codes

If you want to know more details about the source codes, please read [my notes of migrating to Java EE 8](https://hantsy.gitbooks.io/java-ee-8-by-example/content/), it is also [open-sourced as a Github project](https://github.com/hantsy/javaee8-by-example-gitbook).

BTW, I maintained a [Java EE 8/Jatarta EE 8 resource checklist](https://github.com/hantsy/awesome-javaee8) to collect the useful JavaEE8/Jakrata EE 8 resources.

Welcome to contribute.