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
$19.99 per month
Full star icon Full star icon Full star icon Full star icon Empty star icon 4 (4 Ratings)
Paperback 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
$19.99 per month
Full star icon Full star icon Full star icon Full star icon Empty star icon 4 (4 Ratings)
Paperback 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 a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
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 : 9781849699235
Category :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Nov 19, 2013
Length: 188 pages
Edition : 1st
Language : English
ISBN-13 : 9781849699235
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

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.