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
$9.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
$9.99 $25.99
Paperback
$43.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon Armel Fabrice NDJOBO
Arrow right icon
$9.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
$9.99 $25.99
Paperback
$43.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$9.99 $25.99
Paperback
$43.99
Subscription
Free Trial
Renews at $19.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 2. New Specifications

This chapter will only talk about new specifications that have been added in Java EE 7. In concrete terms, we will present and show how to use the following APIs:

  • Concurrency Utilities for Java EE 1.0

  • Batch Applications for Java Platform 1.0

  • Java API for JSON Processing 1.0

  • Java API for WebSocket 1.0

Concurrency Utilities for Java EE 1.0


Concurrency Utilities for Java EE 1.0 was developed under JSR 236. This section gives you only an overview of the API. The complete document specification (for more information) can be downloaded from http://jcp.org/aboutJava/communityprocess/final/jsr236/index.html.

Why concurrency?

In computer science, concurrency is the ability of an application or a system to execute many tasks in parallel. Before the advent of multitasking system, computers could only run one process at a time. At that time, the programs were not only difficult to design, but they were also executed sequentially from beginning to end and when the machine was running a program that had access to a peripheral device, the running program was first interrupted to allow the reading of the peripheral.

Benefits of concurrency

The development of multitasking operating systems enabled the simultaneous execution of many processes (instances of running programs) within a machine and many threads...

Batch Applications for Java Platform 1.0


The Batch Applications API for the Java Platform 1.0 was developed under JSR 352. This section just gives you an overview of the API. The complete document specification (for more information) can be downloaded from http://jcp.org/aboutJava/communityprocess/final/jsr352/index.html.

What is batch processing?

According to the Cambridge Advanced Learner's Dictionary, a batch is a group of things or people dealt with at the same time or considered similar in type. And a process is a series of actions that you take in order to achieve a result. Based on these two definitions, we can say that batch processing is a series of repetitive actions on a large amount of data in order to achieve a result. Given the large amounts of data that it has to deal with, batch processing is often used for end of day, month, period, and year processing.

The following is a short list of domains where you can use batch processing:

  • Data import/export from/to XML or CSV files

  • Accounting...

Java API for JSON Processing 1.0


The Java API for JSON Processing 1.0 was developed under JSR 353. This section gives you only an overview of the API. The complete document specification (for more information) can be downloaded from http://jcp.org/aboutJava/communityprocess/final/jsr353/index.html.

What is JSON?

JavaScript Object Notation (JSON) is a lightweight data-interchange text format. It is based on a subset of JavaScript, but it is completely language independent. JSON format is often used for data exchanges between web client and web server or web service. But, it can be used whenever you need to store or transmit relatively small amounts of data that can easily be represented as a combination of name-value pairs.

JSON is built on two structures, which are: a collection of name-value pairs and an ordered list of values. These structures are made from three data types: object, array, and value.

Object

An object is an unordered set of name:value pairs within braces ({}). After each name...

Java API for WebSocket 1.0


The Java API for WebSocket 1.0 was developed under JSR 356. This section just gives you an overview of the API. The complete document specification (for more information) can be downloaded from http://jcp.org/aboutJava/communityprocess/final/jsr356/index.html.

What is WebSocket?

Originally called TCPConnection in previous versions of the HTML5 specification, WebSocket is an independent protocol built over the TCP (Transmission Control Protocol), which enables bidirectional and full-duplex communication between a client and a server.

To open a WebSocket connection in web application , the web client uses an HTTP request to ask the server to upgrade the connection to a WebSocket connection. If the server supports and accepts the WebSocket protocol connection request, it will still return a response through HTTP. From that moment, the communication is established and both parties can send and receive data by using only the WebSocket protocol.

Why WebSocket?

Today, many...

Summary


In this chapter we have tried to present the usefulness and implementation of the new specifications of Java EE 7. In the coming chapters, we will analyze the improvements that have been made to the specifications inherited from Java EE 6 and use the opportunity to show how to integrate new specifications with existing ones.

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
$19.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
$199.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
$279.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 $ 73.98
Java EE 7 First Look
$43.99
Instant Java Password and Authentication Security
$29.99
Total $ 73.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.