What’s new in Java EE 8(by example)

A brief intro of Java EE 8

What is new in Java EE 8

  • JSR 375 — Java EE Security API 1.0
  • JSR 367 — The Java API for JSON Binding (JSON-B) 1.0
  • 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
  • JSR 371 — MVC is vetoed in the final stage, but it is still existed as a community based specification.
  • JSR 107 — JCache had missed the last train of Java EE 7, and also lost its attractiveness in Java EE 8.

Example codes

Get source codes

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

Install Oracle JDK 8

  1. Get the latest Oracle Java 8, http://java.oracle.com
  2. Follow the offical installation guide to install it into your local system.
  3. Verify the installation, open terminal and type java --version, it should print java version info.

Install NetBeans IDE

  1. Download NetBeans from http://www.netbeans.org, NetBeans 9 nightly is highly recommended.
  2. Install it into your local system.

Install Glassfish v5

  1. Download Glassfish v5 from http://github.com/glassfish
  2. Exract the archive into your local disc.
  3. Open NetBeans IDE, click Services tab. If it is not opened, open it from Window menu.
  4. Right click the Servers node, in the popup context menu, click Add Server and follow the wizard to add Glassfish v5 into your IDE.

Import sample codes

  1. Starts up NetBeans IDE.
  2. Click Open icon in the toolbar or File/Open menu to select a project. Maven projects are recognized by NetBeans IDE automatically.
  3. Select the above cloned project, open it in NetBeans IDE, it looks like.

References

--

--

--

Self-employed technical consultant, solution architect and full-stack developer, open source contributor, freelancer and remote worker

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

VulnHub — Escalate My Privilege

The Oracle Problem

Remote Deployment to Glassfish v6 using Cargo Local Deployer

Amazon Web Services (AWS) is the world’s most comprehensive and broadly adopted cloud platform…

Run Dataflow Jobs in a Shared VPC without Regional Endpoints on GCP

Storing Data In The Cloud In 2020 Part 1

Data Preprocessing with Orange tool

Features of Go

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Hantsy

Hantsy

Self-employed technical consultant, solution architect and full-stack developer, open source contributor, freelancer and remote worker

More from Medium

Tree Entity with JPA and spring-boot

Immutable Objects In Java

Checking performance of different SSL/TLS implementations for Java Applications

Spring AOP — Using Java annotation as pointcut expressions