Book Image

Java EE 7 First Look

By : Armel Fabrice NDJOBO
Book Image

Java EE 7 First Look

By: Armel Fabrice NDJOBO

Overview of this book

For several years, the development of robust, scalable, and secured applications was a headache for software companies. They had to use proprietary solutions with non-standard methods. With Java EE, many of these solutions have been standardized, simplified, adapted to the needs of the developer, and made freely available to the community. Thus, it is now possible to develop truly robust, secure, and scalable applications at a lower cost using tools such as: Eclipse, NetBeans, and GlassFish.Java EE 7 First Look is a practical guide which, through the creation of an online pre-registration website, will introduce you to the novelties of Java EE 7 and give you ideas for utilizing them.Giving you an insight on new features introduced in Java EE 7, this book begins with the objectives of Java EE 7 and then covers the new specifications added in Java EE 7. Next, you will move on to the improvements made in APIs and EJBs and how to work with them. You will also learn how to ensure that the quality of data is maintained that has been manipulated by your application and gives you the opportunity to put a small part of AOP (Aspect Oriented Programming) in action.Finally, the book will give you some ideas to realize n-tier applications using the Java EE platform and will also provide some guidance for the integration of your Java EE application to heterogeneous systems with which your application will interact.After reading Java EE 7 First Look, you'll have a good idea about the changes brought in by Java EE 7, as well as how to make the best use of these to build a large-scale application.
Table of Contents (16 chapters)

Novelties of Java EE 7

The Java EE 7 was developed as a Java Specification Request (JSR 342). It has a total of 31 specifications including 4 new specifications, 10 major releases, and 9 MRs (Maintenance Releases). All these specifications are taken into account by the GlassFish Server 4.0 (accessible via the address, which is the reference implementation of Java EE 7.

The new specifications introduced in Java EE are as follows:

APIs inherited from the Java EE 6 platform that have undergone major changes are the following:

  • Java Platform, Enterprise Edition 7 (Java EE 7) Specification (, when compared to Java EE 6, further simplifies development, adds support for HTML5, and prepares the platform to migrate to the cloud

  • Java Servlet 3.1 Specification ( introduces some features such as non blocking I/O API and protocol upgrade processing

  • Expression Language 3.0 ( was separated from JSP specification request, and it came with many changes including an API for standalone environments, lambda expressions, and collections objects support

  • JavaServer Faces 2.2 ( integrates the support for the HTML5 standard and brings features such as resource library contracts, Faces Flow, and stateless views

  • Java Persistence 2.1 ( brings us the opportunity to execute Stored Procedures, create named queries at runtime, construct bulk update/delete via the Criteria API, override or change the fetch setting at runtime, and make explicit joins as in SQL

  • Enterprise JavaBeans 3.2 ( introduces the ability to manually disable the passivation of stateful session beans and has also relaxed rules to define the default local or remote business interface

  • Java Message Service 2.0 ( simplifies the API

  • JAX-RS 2.0: The Java API for RESTful Web Services ( simplifies the implementation of RESTful Web Services and introduces new features including Client API, asynchronous processing, filters, and interceptors

  • Contexts and Dependency Injection for Java EE 1.1 ( introduces many changes, some of which are access to the current CDI container, access to the non contexual instances of a bean, and the ability to explicitly destroy bean instances

  • Bean Validation 1.1 ( introduces support for method and constructor validation, group conversion, and message interpolation using expression language

Only the following APIs are affected by maintenance releases: