Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Java EE 7 First Look
Java EE 7 First Look

Java EE 7 First Look: Discover the new features of Java EE 7 and learn to put them together to build a large-scale application

Arrow left icon
Profile Icon Armel Fabrice NDJOBO
Arrow right icon
€8.99 €25.99
Full star icon Full star icon Full star icon Full star icon Empty star icon 4 (4 Ratings)
eBook Nov 2013 188 pages 1st Edition
eBook
€8.99 €25.99
Paperback
€32.99
Subscription
Free Trial
Renews at €18.99p/m
Arrow left icon
Profile Icon Armel Fabrice NDJOBO
Arrow right icon
€8.99 €25.99
Full star icon Full star icon Full star icon Full star icon Empty star icon 4 (4 Ratings)
eBook Nov 2013 188 pages 1st Edition
eBook
€8.99 €25.99
Paperback
€32.99
Subscription
Free Trial
Renews at €18.99p/m
eBook
€8.99 €25.99
Paperback
€32.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Java EE 7 First Look

Chapter 1. What's New in Java EE 7

Because of their use, distributed applications require some non functional services such as remote access, security, transaction management, concurrency, and robustness, among others. Unless you have APIs that offer these types of services, you need to implement them all from scratch and therefore, increase the number of bugs, reduce software quality, and increase production costs and time. The Java EE platform was set up to save the developer from these concerns. It is made up of a set of APIs that facilitate the development and deployment of distributed, robust, scalable, and interoperable applications.

Since its first release in 1999, the Java EE platform has evolved over time by offering a newer, richer, and simpler version than the previous one. In order for you to have an overview of the improvements in Java EE 7, this chapter addresses the following topics:

  • A brief history of Java EE

  • The main goals of Java EE 7

  • Novelties of Java EE 7

A brief history of Java EE


Formerly called J2EE, the first version of Java EE platform was officially released in December 1999 with 10 specifications. Among these specifications, there were Servlets and JavaServer Pages (JSP) for data presentation, Enterprise JavaBeans (EJB) for the management of persistent data, remote access to business services through RMI-IIOP (Remote Method Invocation over Internet Inter-ORB Protocol), and the JMS (Java Message Service) specification, which was used to send messages.

Despite efforts and many contributions, early versions of Java EE were too complex and difficult to implement. This led to much criticism and caused the rise of competing frameworks such as Spring Framework.

Having drawn lessons from its previous failures, the platform has considerably evolved over time until the production of Java EE 5, which permitted the platform to regain its lost esteem. From this version, Java EE continues to provide easier, richer, and more powerful versions of the platform.

The preceding diagram gives an overview of the important changes made to Java EE platform since the release of the first version in December 1999. This diagram highlights the release dates, updates, and major improvements in each version. It also allows us to have an idea about the central theme behind each version.

The main goals of Java EE 7


Since May 2006, the Java EE platform has known remarkable evolution in terms of implementation. First, with Java EE 5, it greatly simplified the development of applications by allowing the transformation of a simple Java class (POJO class) into a business object through annotations or XML descriptions. Still in the line of simplification, Java EE 6 helps enrich annotations and introduces new concepts such as pruning, RESTful Web Services, CDI, EJB Lite, and configuration by exception and web profiles. This allows the platform to provide many easy-to-deploy and consume services. After the success of Java EE 6, the JCP (Java Community Process) envisaged turning the platform into a service by providing an infrastructure for cloud support. But, due to lack of significant progress in the concerned specifications, it revised its objectives. It is from the perspective of preparing the migration of the Java EE platform to the cloud that Java EE 7 focuses on productivity and HTML5 support. Having missed the big goal (that is, the migration to the cloud), it will reach its new goals through completion of Java EE 6 features and addition of some new specifications.

Productivity

Productivity in Java EE 7 has been improved upon in many ways. By simplifying some APIs such as JMS and JAX-RS, Java EE 7 platform significantly reduces boilerplate code. As you will notice in the chapters that follow, sending a JMS message can fit on one line and no longer requires the creation of several objects as was the case with JMS 1.1, where it was first necessary to create a Connection, Session, MessageProducer, and TextMessage.

Java EE 7 has integrated new APIs to better address the needs of enterprise applications relative to the processing of large amounts of data. We have, for example, the concurrency utilities, which allow the creation of managed threads within a container and give developers the ability to break down large processes into smaller units that can be computed concurrently. Similarly, there is a Java API for batch processing to manage bulk and long-running jobs.

Finally, Java EE 7 is enriched in annotations and has set a focus on configuration by exception. Whether it is for data source or batch processing, compatible Java EE 7 containers provide a number of default objects. It is even possible to produce complex applications with minor configuration.

In short, the new platform frees the developer from performing a number of tasks and the creation of several types of objects that are required for setting up an application.

HTML5 support

Some people might wonder why the support of HTML5 is so important. The answer is simple: HTML5 is the latest release of the HTML standard. More so, it offers new features that ease the building of more powerful and suitable web applications. For example, via the <audio> and <video> elements of HTML5, you can play, pause, and resume audio and video media content without the use of a third-party plugin such as Flash. Through the canvas element and WebGL library (a subset of OpenGL), you can easily integrate 2D and 3D graphics in your website. With regards to communication between the client and server, the perfect integration of WebSocket protocol in HTML5 allows us to build a web application with full-duplex P2P communication and get over some limitations of HTTP for real-time communication. Using this protocol, you will have no difficulty in realizing chat applications or other web applications that require real-time communication between the client and server, such as trading and e-commerce platforms. In terms of data exchange, the native support of JSON format in HTML5 simplifies processing of information and reduces the size of documents. Many other areas have been improved, but for now we will only mention these ones.

Given all these innovations, the support for HTML5 features was added in JSF (JavaServer Faces), a new API was added to Java EE 7 platform to build WebSocket-driven applications and another API to process JSON data format.

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 https://glassfish.java.net/download.html), 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 (http://jcp.org/en/jsr/detail?id=342), 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 (http://jcp.org/en/jsr/detail?id=340) introduces some features such as non blocking I/O API and protocol upgrade processing

  • Expression Language 3.0 (http://jcp.org/en/jsr/detail?id=341) 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 (http://jcp.org/en/jsr/detail?id=344) integrates the support for the HTML5 standard and brings features such as resource library contracts, Faces Flow, and stateless views

  • Java Persistence 2.1 (http://jcp.org/en/jsr/detail?id=338) 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 (http://jcp.org/en/jsr/detail?id=345) 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 (http://jcp.org/en/jsr/detail?id=343) simplifies the API

  • JAX-RS 2.0: The Java API for RESTful Web Services (http://jcp.org/en/jsr/detail?id=339) 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 (http://jcp.org/en/jsr/detail?id=346) 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 (http://jcp.org/en/jsr/detail?id=349) introduces support for method and constructor validation, group conversion, and message interpolation using expression language

Only the following APIs are affected by maintenance releases:

Summary


After briefly introducing the evolution of Java EE and analyzing the objectives of the latest platform, we listed all the specifications that were improved upon or added in Java EE 7. In the next chapter, we will focus on new specifications to highlight their usefulness and show how they can be implemented.

Left arrow icon Right arrow icon

Key benefits

  • Explore changes brought in by the Java EE 7 platform
  • Master the new specifications that have been added in Java EE to develop applications without any hassle
  • Quick guide on the new features introduced in Java EE7

Description

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.

Who is this book for?

Given the main objectives pursued, this book targets three groups of people with a knowledge of the Java language. They are: Beginners in the Java EE platform who would like to have an idea about the main specifications of Java EE 7 Developers who have experimented with previous versions of Java EE and who would like to explore the new features of Java EE 7 Building architects who want to learn how to put together the various Java EE 7 specifications for building robust and secure enterprise applications

What you will learn

  • Put together the Java EE 7 APIs in order to realize applications
  • Solve integration problems with heterogeneous systems
  • Secure Java EE 7 applications
  • Explore the usefulness of some major Java EE specifications
  • Learn how to implement large processes in the Java EE 7 environment
  • Discover a good alternative to XML for data exchange

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Nov 19, 2013
Length: 188 pages
Edition : 1st
Language : English
ISBN-13 : 9781849699242
Category :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Nov 19, 2013
Length: 188 pages
Edition : 1st
Language : English
ISBN-13 : 9781849699242
Category :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 55.98
Java EE 7 First Look
€32.99
Instant Java Password and Authentication Security
€22.99
Total 55.98 Stars icon
Banner background image

Table of Contents

9 Chapters
What's New in Java EE 7 Chevron down icon Chevron up icon
New Specifications Chevron down icon Chevron up icon
The Presentation Layer Chevron down icon Chevron up icon
The Java Persistence API Chevron down icon Chevron up icon
The Business Layer Chevron down icon Chevron up icon
Communicating with External Systems Chevron down icon Chevron up icon
Annotations and CDI Chevron down icon Chevron up icon
Validators and Interceptors Chevron down icon Chevron up icon
Security Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
(4 Ratings)
5 star 0%
4 star 100%
3 star 0%
2 star 0%
1 star 0%
Kindle Customer Dec 31, 2013
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
An easy read, this JEE book gives the reader a few useful things:- An easy introduction to many parts of the JEE stack, including simple examples- An overview of what's new in JEE 7, based on the JSR specs that made up JEE 7.Easy wording and clear examples make this a simple read. A good book for the Enterprise Java developer's continuing education.
Amazon Verified review Amazon
Dustin Marx Dec 22, 2013
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Java EE 7 First Look is best suited for developers who have worked with J2EE or Java EE previously and want a quick introduction to the new features of Java EE 7. In 9 chapters and approximately 165 pages of prose, code listings, and screen snapshots, Java EE 7 First Look examines the most significant specifications that make up Java EE by first looking at the history of each specification before going through an example (usually code-based with text descriptions) of applying that specification to a common use case. After brief review of each specification and an example of using each specification, the author typically references the Java Specification Request (JSR) that introduces new features to that specification for Java EE 7 and often details the key improvements to that specification that come with Java EE 7.Although the new features of Java EE 7 are introduced after a review of the particular specification to which the new features are most closely associated, this review is typically relatively brief and will probably be best for those who have at least some minimal experience with J2EE or Java EE. I would not recommend this book as the sole book for someone with no J2EE/Java EE experience to learn Java EE, but it might be a good supplement for someone using a more thorough Java EE introductory book or reference that was written for an earlier version of Java EE. The review portions that precede each discussed new set of features are probably sufficient even for readers who have not used J2EE or Java EE for a while, but may not be sufficient by themselves for someone who has never used J2EE or Java EE.Some of the examples in Java EE 7 First Look depend on NetBeans 7.3.1 or newer, GlassFish 4 b89 or later, and MySQL 5.5 or later, but most of the examples don't have any particular requirement other than a Java EE 7-compliant application server and Java SE 7.The new features of Java EE 7 are described in various places online including the Java EE 7 Tutorial, but Java EE 7 First Look organizes the Java EE 7 enhancements and presents them in a manner that allows the reader to quickly ascertain what Java EE 7 brings to Java EE development.I read the PDF version of Java EE 7 First Look . Although there are a few screen snapshots with color that probably appear better in the electronic version of the book, most of the images are black or gray scale and so likely look fine in the printed book .
Amazon Verified review Amazon
Sergiy Pylypets Dec 31, 2013
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
The main topic of this book is to provide information about new features of the latest Java EE 7 release. The first chapter contains an extensive review of Java EE landscape and evolution, helping to better understand the newest Java EE platform objectives. The second chapter focuses on new technologies and specifications that have been added in the release.The book is written with clear and precise language, with recalling of software engineering definitions where appropriate. The book text contains useful tip and warning sections; new and important words are highlighted. The content is well-structured. Each chapter contains standard sections, like "What is ...", "Why ...", "... in Action", etc. For each of discussed technologies, a reference to the corresponding JSR document is provided, which helps to quickly get additional information on the topic. Discussed topics are illustrated by code examples, schemes, tables and diagrams.In Chapter 5, a realistic enterprise-level project is introduced. This project gets incrementally developed in the following chapters, providing practical examples of how to use discussed technologies in real development process.All the examples presented in this book can be run with the usage of well-known free software like NetBeans IDE, GlassFish application server, and MySQL database.To my mind, this book can be useful for all software engineers, who are working on development of modern, high-performance Java EE applications.
Amazon Verified review Amazon
Chhayakanta Padhi Jan 06, 2014
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Java EE 7 First Look has 9 chapters, 188 pages, discussing on topics like Concurrency Utilities, new Batch Apis, JSOn processing, Web Sockets, Servlet, JSF, Expression Language, JPA, JTA, EJB, JCA, JMS, Annotations, CDI, Validators, Interceptors and Security.As the title suggests it's a quick look to what's new in JEE 7. Author have beautifully explained various topics in concise manner with nice examples & code snipptes. Obviousness it's not a book on details implementation of each topics specified above but a good read.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.