Coder Social home page Coder Social logo

theside / ee8-sandbox Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hantsy/ee8-sandbox

0.0 0.0 0.0 256 KB

Java EE 8/Jakarta EE 8 sandbox

Home Page: https://github.com/hantsy/javaee8-by-example-gitbook

License: Apache License 2.0

Java 86.96% CSS 0.37% HTML 12.68%

ee8-sandbox's Introduction

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.

<dependency>
    <groupId>jakarta.platform</groupId>
    <artifactId>jakarta.jakartaee-api</artifactId>
    <version>${jakartaee-api.version}</version>
</dependency>

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

<dependency>
    <groupId>jakarta.platform</groupId>
    <artifactId>jakarta.jakartaee-web-api</artifactId>
    <version>${jakartaee-api.version}</version>
</dependency>

Define the propery jakartaee-api.version in properties.

<!-- Jakarta EE API -->
<jakartaee-api.version>8.0.0</jakartaee-api.version>

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, it is also open-sourced as a Github project.

BTW, I maintained a Java EE 8/Jatarta EE 8 resource checklist to collect the useful JavaEE8/Jakrata EE 8 resources.

Welcome to contribute.

ee8-sandbox's People

Contributors

hantsy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.